[BUG] int i; float a[i];

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Sep 16 03:20:00 GMT 2004


Mathieu Malaterre <mmalater@nycap.rr.com> writes:

| 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 ?

GCC extension.  Try -pedantic.

-- Gaby



More information about the Gcc mailing list