This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/44412] New: Another bogus set-but-not-used warning
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2010 00:35:03 -0000
- Subject: [Bug c++/44412] New: Another bogus set-but-not-used warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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