public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/31673]  New: "`for' loop initial declaration used outside C99 mode" is confusing
@ 2007-04-23 20:33 j at uriah dot heep dot sax dot de
  2007-04-23 20:34 ` [Bug c/31673] " j at uriah dot heep dot sax dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: j at uriah dot heep dot sax dot de @ 2007-04-23 20:33 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-27 23:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-23 20:33 [Bug c/31673] New: "`for' loop initial declaration used outside C99 mode" is confusing j at uriah dot heep dot sax dot de
2007-04-23 20:34 ` [Bug c/31673] " j at uriah dot heep dot sax dot de
2007-04-23 20:40 ` pinskia at gcc dot gnu dot org
2007-04-23 20:49 ` j at uriah dot heep dot sax dot de
2007-04-23 20:57 ` pinskia at gcc dot gnu dot org
2007-04-23 21:05 ` j at uriah dot heep dot sax dot de
2007-05-23 16:36 ` manu at gcc dot gnu dot org
2008-08-27 23:57 ` manu at gcc dot gnu dot org
2008-08-27 23:57 ` manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).