This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/54823] string literal characters not constant
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Oct 2012 12:06:58 +0000
- Subject: [Bug c/54823] string literal characters not constant
- Auto-submitted: auto-generated
- References: <bug-54823-4@http.gcc.gnu.org/bugzilla/>
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.