From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24270 invoked by alias); 3 Jul 2012 19:58:59 -0000 Received: (qmail 24260 invoked by uid 22791); 3 Jul 2012 19:58:58 -0000 X-SWARE-Spam-Status: No, hits=-3.6 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; Tue, 03 Jul 2012 19:58:39 +0000 From: "jewillco at osl dot iu.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53845] New: Another "error reporting routines re-entered" issue Date: Tue, 03 Jul 2012 19:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jewillco at osl dot iu.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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 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-07/txt/msg00395.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53845 Bug #: 53845 Summary: Another "error reporting routines re-entered" issue Classification: Unclassified Product: gcc Version: 4.7.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: jewillco@osl.iu.edu This example causes "Error reporting routines re-entered", and seems to be different from those reported so far: struct a {}; template struct b; template<> struct b {static const int v =3D 3;}; template struct c { static_assert(b::v =3D=3D 3, ""); using t =3D int; }; template auto d(T x) -> decltype(((x.template e()))) {return ((x.template e())= );} template struct f { template struct h { using w =3D int; typename c::t x; }; template decltype(d::w>(*(B*)nullptr)) e(); }; struct g { template int e(); }; int main(int argc, char** argv) { d(f{}); return 0; } It is probably invalid code. Some small variations on it cause infinite lo= ops (recursion depth exceeded), which also seem to be incorrect. The full error message for the code above with 4.7.1 is: =E2=80=98 Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. See for instructions.