From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1412 invoked by alias); 8 Sep 2014 19:40:14 -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 Received: (qmail 1368 invoked by uid 48); 8 Sep 2014 19:40:10 -0000 From: "st at quanttec dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61838] ICE on Windows with ctors defined outside class definitions Date: Mon, 08 Sep 2014 19:40: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-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: st at quanttec 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-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-09/txt/msg01276.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61838 Stephan Tolksdorf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |st at quanttec dot com --- Comment #2 from Stephan Tolksdorf --- This regression from 4.8 seems to have been fixed on trunk but is still present on the 4.9 branch. Could the fix be packported to 4.9? Compiling the following simple snippet with "-std=c++11" produces a segfault with 4.9: template struct A {}; struct B { B(A); }; B::B(A) {} cc1plus: internal compiler error: Segmentation fault 0x919b1f crash_signal ../../gcc/gcc/toplev.c:337 0x6a5ea2 analyze_functions ../../gcc/gcc/cgraphunit.c:1043 0x6a6f4f finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2327 0x559ebb cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4616