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/31673] New: "`for' loop initial declaration used outside C99 mode" is confusing


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


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