This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16277] New: [3.5 regression] Still spurious warnings about unused SSA variables
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2004 16:34:33 -0000
- Subject: [Bug tree-optimization/16277] New: [3.5 regression] Still spurious warnings about unused SSA variables
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
There is certainly nothing uninitialized in this code (unless
possibly in std::vector<bool>, which I haven't checked yet):
-----------------------------
#include <vector>
struct D {
D (const std::vector<bool> &);
const std::vector<bool> a;
};
D::D (const std::vector<bool> &v)
:
a (v.size() == 0 ? std::vector<bool> () : v)
{}
-----------------------
Yet I get this:
parameter-estimation/libparest> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -O2
-Wuninitialized -c x.cc
x.cc: In constructor `D::D(const std::vector<bool, std::allocator<bool> >&)':
x.cc:11: warning: 'this.350' is used uninitialized in this function
x.cc: In constructor `D::D(const std::vector<bool, std::allocator<bool> >&)':
x.cc:11: warning: 'this.350' is used uninitialized in this function
Note also that the warning is indeed printed twice.
W.
--
Summary: [3.5 regression] Still spurious warnings about unused
SSA variables
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16277