This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25504] New: -ansi -Wall should warn about variable-size arrays
- From: "giles at xiph dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2005 18:18:58 -0000
- Subject: [Bug c/25504] New: -ansi -Wall should warn about variable-size arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I generally expect 'gcc -ansi -Wall' to catch non-portable code, but it does
not throw a warning about variable-size arrays.
'gcc -ansi -pedantic' does throw an appropriate warning. However, it appears
that MSVC still doesn't support this feature, and so I think it would be more
appropriate to throw a warning either with '-ansi -Wall' or just with '-ansi'
without requiring -pedantic to reflect the danger using this feature.
--
Summary: -ansi -Wall should warn about variable-size arrays
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: giles at xiph dot org
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25504