c/7243: cannot declare an array at file level with constant expression for size

nathan@gcc.gnu.org nathan@gcc.gnu.org
Tue Jul 9 08:28:00 GMT 2002


Synopsis: cannot declare an array at file level with constant expression for size

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Tue Jul  9 08:28:53 2002
State-Changed-Why:
    not a bug. The array dimension must be an integral constant
    expression.
    const int x = 1;
    int y[x]; /* not such an expression */
    
    refer to A7.19. 

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



More information about the Gcc-prs mailing list