This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/7243: cannot declare an array at file level with constant expression for size
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jonathan dot ashley at praxis-cs dot co dot uk, nobody at gcc dot gnu dot org
- Date: 9 Jul 2002 15:28:53 -0000
- Subject: Re: c/7243: cannot declare an array at file level with constant expression for size
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jonathan dot ashley at praxis-cs dot co dot uk, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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