[Bug c/15238] New: Warn about variable declarations mixed with code

arend dot bayer at web dot de gcc-bugzilla@gcc.gnu.org
Fri Apr 30 23:31:00 GMT 2004


It would be extremely useful to have an option (below -pedantic) which triggers 
a warning in the testcase. Mixing variable declarations with code is the most 
frequent cause of breaking backwards compatibility for compilation with gcc 
2.95 in projects that are supposed to be compilable by all gcc versions (using 
gcc extensions), but where the developers are using gcc 3.x. 
 
I have seen this issue on many mailing lists.

-- 
           Summary: Warn about variable declarations mixed with code
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arend dot bayer at web dot de
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list