This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16277] [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:43:50 -0000
- Subject: [Bug tree-optimization/16277] [3.5 regression] Still spurious warnings about unused SSA variables
- References: <20040629163432.16277.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-29 16:43 -------
That was actually simpler than thought:
------------------
struct X {
X ();
~X ();
unsigned size() const;
};
struct D {
D (const X &);
const X a;
};
D::D (const X &v)
:
a (v.size() == 0 ? X () : v)
{}
--------------------
parameter-estimation/libparest> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -O2
-Wuninitialized -c x.cc
x.cc: In constructor `D::D(const X&)':
x.cc:15: warning: 'this.1' is used uninitialized in this function
x.cc: In constructor `D::D(const X&)':
x.cc:15: warning: 'this.1' is used uninitialized in this function
There is indeed nothing uninitialized in the code, it's a compiler bug.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16277