This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/16277] [3.5 regression] Still spurious warnings about unused SSA variables


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]