This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/9469] [3.3/3.4 regression] initializer element is (allegedly) not constant
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jul 2003 05:10:55 -0000
- Subject: [Bug c/9469] [3.3/3.4 regression] initializer element is (allegedly) not constant
- References: <20030127231600.9469.akpm@digeo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9469
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-07-02 05:10 -------
According to ISO C99 6.6, a constant expression in an initializer must be an
"arithmetic constant expression, a null pointer constant, an address constant,
or an address constant for an object type plus or minus an integer constant
expression." A compound-literal is not one of these alternatives.
Therefore, this is not a bug.