[Bug c++/36170] enum variable operation behaviour and -O2

2010-05-03 Thread jason at gcc dot gnu dot org
--- Comment #3 from jason at gcc dot gnu dot org 2010-05-04 04:49 --- In G++ 4.6 the surprising optimization will only be performed with -fstrict-enums. -- jason at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/36170] enum variable operation behaviour and -O2

2008-05-07 Thread john dot spelis at 3dlabs dot com
--- Comment #2 from john dot spelis at 3dlabs dot com 2008-05-07 18:38 --- Subject: Re: enum variable operation behaviour and -O2 Thanks for ending that issue. Best Regards On 7 May 2008, pinskia at gcc dot gnu dot org wrote: > > > --- Comment #1 from pinskia at gcc dot gnu

[Bug c++/36170] enum variable operation behaviour and -O2

2008-05-07 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-05-07 17:23 --- And C++ standard says if the value is out of range of the enum, the behavior is undefined so this is not a bug. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -