This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[BUG] int i; float a[i];
- From: Mathieu Malaterre <mmalater at nycap dot rr dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 15 Sep 2004 20:39:01 -0400
- Subject: [BUG] int i; float a[i];
Hello,
Sorry for the subject but I really can't find any keyword to define it.
Can somebody please point me to the bug in the bugzilla, since I believe
this is not valid c++ code:
int foo(int i)
{
float a[i]; //Is this valid ?
for(int j=0;j<i;j++)
a[j]=j;
}
int main()
{
foo(100);
return 0;
}
Thanks
Mathieu