[Bug tree-optimization/16277] [3.5 regression] Still spurious warnings about unused SSA variables
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 29 16:45:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list