This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31673] New: "`for' loop initial declaration used outside C99 mode" is confusing
- From: "j at uriah dot heep dot sax dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Apr 2007 20:33:25 -0000
- Subject: [Bug c/31673] New: "`for' loop initial declaration used outside C99 mode" is confusing
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The error message
`for' loop initial declaration used outside C99 mode
is just confusing to the average user. The default -std level is "gnu89"
which forbids for loop initial declarations, but as the user might not
have even heard about C99 let alone mentioned that somewhere on purpose,
this message causes an unusual high amount of support traffic.
I suggest replacing it by
`foo' loop initial declarations are only allowed in C99 mode
--
Summary: "`for' loop initial declaration used outside C99 mode"
is confusing
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: j at uriah dot heep dot sax dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31673