public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/16277] New: [3.5 regression] Still spurious warnings about unused SSA variables
@ 2004-06-29 16:35 bangerth at dealii dot org
  2004-06-29 16:43 ` [Bug tree-optimization/16277] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bangerth at dealii dot org @ 2004-06-29 16:35 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-07-23 22:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-29 16:35 [Bug tree-optimization/16277] New: [3.5 regression] Still spurious warnings about unused SSA variables bangerth at dealii dot org
2004-06-29 16:43 ` [Bug tree-optimization/16277] " pinskia at gcc dot gnu dot org
2004-06-29 16:45 ` bangerth at dealii dot org
2004-06-29 16:58 ` [Bug c++/16277] " pinskia at gcc dot gnu dot org
2004-06-30  2:55 ` giovannibajo at libero dot it
2004-06-30 21:44 ` pinskia at gcc dot gnu dot org
2004-06-30 22:17 ` bangerth at dealii dot org
2004-07-15 18:55 ` pinskia at gcc dot gnu dot org
2004-07-15 19:04 ` [Bug c++/16277] [3.5 regression] Wrong code with conditionals in initializers bangerth at dealii dot org
2004-07-22  4:58 ` pinskia at gcc dot gnu dot org
2004-07-22 23:15 ` rth at gcc dot gnu dot org
2004-07-23 22:48 ` cvs-commit at gcc dot gnu dot org
2004-07-23 22:55 ` rth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).