[Bug c/25504] -ansi -Wall should warn about variable-size arrays

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 20 18:26:00 GMT 2005



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-12-20 18:26 -------
This is not really a bug:
       -ansi
           In C mode, support all ISO C90 programs.  In C++ mode, remove GNU
extensions that
           conflict with ISO C++.


           The -ansi option does not cause non-ISO programs to be rejected
gratuitously.  For
           that, -pedantic is required in addition to -ansi.

And since this extension is also part of C99.  This is not a bug really.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25504



More information about the Gcc-bugs mailing list