[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug c/15238] New: Warn about variable declarations mixed with code
From:       "arend dot bayer at web dot de" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2004-04-30 22:09:40
Message-ID: 20040430220933.15238.arend.bayer () web ! de
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic