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