[Bug c++/53745] Bitshifted value (1 << 31) within enumerator class is calculated incorrectly during compilation.

2012-06-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53745 --- Comment #2 from Jonathan Wakely 2012-06-21 13:36:24 UTC --- The initializer must be converted constant expression of type unsigned long, so by my reading it's ill-formed because (1<<31) has type int and is negative so requires a narrowing con

[Bug c++/53745] Bitshifted value (1 << 31) within enumerator class is calculated incorrectly during compilation.

2012-06-21 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53745 Andreas Schwab changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRME