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] New: [3.5 regression] Still spurious warnings about unused SSA variables


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


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