[Bug c++/49311] Missing static const symbol with -O0
hartmut.schirmer at arcormail dot de
gcc-bugzilla@gcc.gnu.org
Tue Jun 7 14:11:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49311
--- Comment #1 from Hartmut Schirmer <hartmut.schirmer at arcormail dot de> 2011-06-07 14:11:17 UTC ---
Created attachment 24458
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24458
Small test case
Note bar() doesn't fail
Simple changes like
return direction==0 ? A::PEN+0 : A::NEN+0;
or
return direction==0 ? (unsigned)A::PEN : (unsigned)A::NEN;
cause the problem to go away
More information about the Gcc-bugs
mailing list