[Bug c++/55020] 4.7.2 allow array init wih non-const argument
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 22 12:34:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55020
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-22 12:34:20 UTC ---
This is a GNU extension and works by design, use -pedantic or -pedantic-errors
to get a diagnostic
f.cc:3:14: warning: ISO C++ forbids variable length array 'arr' [-Wvla]
More information about the Gcc-bugs
mailing list