public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44412]  New: Another bogus set-but-not-used warning
@ 2010-06-04  0:35 paolo dot carlini at oracle dot com
  2010-06-04 12:04 ` [Bug c++/44412] [4.6 Regression] " jakub at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-04  0:35 UTC (permalink / raw)
  To: gcc-bugs

This one causes tons of warnings in the libstdc++ testsuite (with -Wall in
CXXFLAGS) and seems also bogus to me.

struct ratio
{
  static const int a = 3;
};

const int ratio::a;

int f()
{
  ratio r;
  return r.a;
}


-- 
           Summary: Another bogus set-but-not-used warning
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: paolo dot carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44412


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

end of thread, other threads:[~2010-06-24 11:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04  0:35 [Bug c++/44412] New: Another bogus set-but-not-used warning paolo dot carlini at oracle dot com
2010-06-04 12:04 ` [Bug c++/44412] [4.6 Regression] " jakub at gcc dot gnu dot org
2010-06-04 14:13 ` jakub at gcc dot gnu dot org
2010-06-04 18:46 ` jakub at gcc dot gnu dot org
2010-06-24 11:00 ` jakub 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).