From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 352 invoked by alias); 23 Apr 2007 20:33:34 -0000 Received: (qmail 318 invoked by uid 48); 23 Apr 2007 20:33:25 -0000 Date: Mon, 23 Apr 2007 20:33:00 -0000 Subject: [Bug c/31673] New: "`for' loop initial declaration used outside C99 mode" is confusing X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "j at uriah dot heep dot sax dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-04/txt/msg01714.txt.bz2 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