[Bug c++/50365] [4.7 Regression] non-static data member error on valid code
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 12 14:48:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50365
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-12 14:44:20 UTC ---
further reduced
struct String {
String(const char* s, int len);
bool test();
};
struct XplorVars { const char* aner; };
struct XplorSimulation {
XplorSimulation();
XplorVars* xplorVars();
};
XplorSimulation::XplorSimulation()
{
if ( String(xplorVars()->aner, 4).test() )
;
}
More information about the Gcc-bugs
mailing list