[Bug c/86719] case label does not reduce to an integer constant
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 29 07:28:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86719
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this is not valid C. constant expressions in C is different from C++
constant expressions. In C, const int variables are not constant expressions.
More information about the Gcc-bugs
mailing list