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

Reply via email to