From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17065 invoked by alias); 7 Nov 2012 07:45:32 -0000 Received: (qmail 16313 invoked by uid 48); 7 Nov 2012 07:45:09 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55226] New: [C++11] ICE regression in regard to anonymous unions and constexpr Date: Wed, 07 Nov 2012 07:45: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: daniel.kruegler at googlemail dot com 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-11/txt/msg00547.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55226 Bug #: 55226 Summary: [C++11] ICE regression in regard to anonymous unions and constexpr Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: daniel.kruegler@googlemail.com The following code gives me now a regressive ICE when switching from my previous gcc 4.8 (last successfully tested: 4.8.0 20121014 (experimental)) to gcc 4.8.0 20121104 (experimental) using the compiler flags -Wall -pedantic -std=c++11 //---------------------- template struct optional_data { union { unsigned char for_value_init_; T value_; }; constexpr optional_data() : for_value_init_() {} }; struct ncnm { ncnm(ncnm&&) = delete; ncnm(const ncnm&) = delete; }; int main() { optional_data o; // #20 } //---------------------- "In function 'int main()':| 20|internal compiler error: in gimplify_init_ctor_eval, at gimplify.c:3787| " A tentative guess is that this could have been a side-effect of the fix applied to bug 54922.