[Bug c/54823] string literal characters not constant
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 5 12:07:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54823
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-05 12:06:58 UTC ---
Whether something is a constant expression or not is one thing, whether you can
fold a non-constant expression from standards POV into a constant is another
thing. That folding is optional, it is an optimization, while the standard
requires that enum constants are constant expressions and GCC doesn't include
*" " among valid constant expressions. No idea why you need it, you can use '
'
which is a valid constant expression.
More information about the Gcc-bugs
mailing list