c/5336: initializer element is not constant

rth@gcc.gnu.org rth@gcc.gnu.org
Tue Apr 30 02:14:00 GMT 2002


Synopsis: initializer element is not constant

State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Mon Apr 29 18:25:50 2002
State-Changed-Why:
    Not a bug.  Constant data does not a constant expression make.
    See section 6.6 of the ISO C standard.  In part:
    
    An integer constant expression shall have integer type and shall only have operands
    that are integer constants, enumeration constants, character constants, sizeof
    expressions whose results are integer constants, and floating constants that are the
    immediate operands of casts. Cast operators in an integer constant expression shall only
    convert arithmetic types to integer types, except as part of an operand to the sizeof
    operator.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5336



More information about the Gcc-bugs mailing list