This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49311] Missing static const symbol with -O0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]