[Bug c++/47108] enum won't use long long as underlying type
flo.ruijt at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Dec 29 16:25:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47108
--- Comment #3 from Floris Ruijter <flo.ruijt at hotmail dot com> 2010-12-29 16:24:54 UTC ---
On Wed, 2010-12-29 at 13:18 +0000, pinskia at gmail dot com wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47108
>
> --- Comment #1 from pinskia at gmail dot com <pinskia at gmail dot com> 2010-12-29 13:18:40 UTC ---
> enum { a=1<<33 }blaf;
> That is still an int as 1 is of type int. Try 1ll<<33.
>
can your please send plaintext mail.
indeed it works then. i find the behaviour pretty obscure though, why is
it that way?
Floris
More information about the Gcc-bugs
mailing list