[Bug c/53091] Const assignment fails in GCC 4.2, 4.4, 4.6, 4.7 - works fine in clang
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 23 19:43:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53091
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-23 19:39:52 UTC ---
>But it does make 0 sense to me that const int is forbidden, but enum is
allowed...
Why variables are not part of C's constant integer expressions. enum values
are not variables.
More information about the Gcc-bugs
mailing list