From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9013 invoked by alias); 29 May 2012 09:27:39 -0000 Received: (qmail 6613 invoked by uid 22791); 29 May 2012 09:24:21 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_CX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 May 2012 09:24:05 +0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/53502] [4.8 Regression] Bootstrap broken with --disable-build-poststage1-with-cxx Date: Tue, 29 May 2012 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-05/txt/msg02697.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53502 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #7 from Tobias Burnus 2012-05-29 09:24:01 UTC --- I have no comment regarding the C/C++ warning, but I think on the gfortran side the following patch makes sense. --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -3266,3 +3266,3 @@ match_attr_spec (void) /* Modifiers that can exist in a type statement. */ - typedef enum + enum { GFC_DECL_BEGIN = 0, I was thinking of the following patch, but it won't work as g++ doesn't like the "d++" in for (d = GFC_DECL_BEGIN; d != GFC_DECL_END; d++) seen[d] = 0; (One could introduce another variable for the zero initialization, but the patch above should be sufficient.) --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -3282,3 +3282,3 @@ match_attr_spec (void) int seen[NUM_DECL]; - unsigned int d; + decl_types d; const char *attr;