From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32073 invoked by alias); 8 Dec 2010 20:54:39 -0000 Received: (qmail 32064 invoked by uid 22791); 8 Dec 2010 20:54:39 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Wed, 08 Dec 2010 20:54:35 +0000 From: "gcc at abeckmann dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46564] [4.6 Regression] ICE: in decl_constant_var_p, at cp/decl2.c:3562 on invalid recursive initialization X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: minor X-Bugzilla-Who: gcc at abeckmann dot de X-Bugzilla-Status: NEW X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.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" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 08 Dec 2010 20:54:00 -0000 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: 2010-12/txt/msg00899.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46564 Andreas Beckmann changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc at abeckmann dot de --- Comment #2 from Andreas Beckmann 2010-12-08 2= 0:54:25 UTC --- Another testcase without nesting problems, but using invalid code instead: =3D=3D=3D=3D=3D 8< =3D=3D=3D=3D=3D constexpr pair ( pair =3D=3D=3D=3D=3D >8 =3D=3D=3D=3D=3D $ g++-trunk -c -std=3Dc++0x ice-decl_constant_var_p.min.ii ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of =E2=80=98pair=E2=80=99 with no type [-fpermissive] ice-decl_constant_var_p.min.ii:4:1: internal compiler error: in decl_constant_var_p, at cp/decl2.c:3563 Please submit a full bug report, $ g++-4.5 -c -std=3Dc++0x ice-decl_constant_var_p.min.ii ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of =E2=80=98pair=E2=80=99 with no type ice-decl_constant_var_p.min.ii:4:1: error: expected =E2=80=98)=E2=80=99 at = end of input ice-decl_constant_var_p.min.ii:4:1: error: expected =E2=80=98,=E2=80=99 or = =E2=80=98;=E2=80=99 at end of input