From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14876 invoked by alias); 14 May 2012 22:11:07 -0000 Received: (qmail 14855 invoked by uid 22791); 14 May 2012 22:11:05 -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; Mon, 14 May 2012 22:10:50 +0000 From: "pkeir at dcs dot gla.ac.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53349] New: Internal compiler error with constexpr and recursive data type. Date: Mon, 14 May 2012 22:21: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: pkeir at dcs dot gla.ac.uk 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" 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/msg01476.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53349 Bug #: 53349 Summary: Internal compiler error with constexpr and recursive data type. Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: pkeir@dcs.gla.ac.uk Created attachment 27404 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27404 The file which causes the internal error. Compiling the attached file will cause an internal compiler error in gcc 4.7.0 under 32-bit Ubuntu 12.04: g++-4.7 -std=c++11 rec_constexpr.cpp ... constfft.cpp:16:47: internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:7400 If the copy constructor of Foo is removed, it is clang 3.2 (trunk 156580) which will then fail.