This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]