This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15238] New: Warn about variable declarations mixed with code
- From: "arend dot bayer at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2004 22:09:40 -0000
- Subject: [Bug c/15238] New: Warn about variable declarations mixed with code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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