From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29873 invoked by alias); 19 Jul 2014 22:51:02 -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 29471 invoked by uid 48); 19 Jul 2014 22:50:53 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61838] ICE on Windows with ctors defined outside class definitions Date: Sat, 19 Jul 2014 22:51: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: harald at gigawatt dot nl 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-07/txt/msg01371.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61838 Harald van Dijk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |harald at gigawatt dot nl --- Comment #1 from Harald van Dijk --- Not specific to Windows. On x86_64-pc-linux-gnu, both 4.9.1 and master as of today ICE. It works from 4.4 to 4.8. cc1plus: internal compiler error: Segmentation fault 0xbbc02f crash_signal ../../gcc/gcc/toplev.c:337 0x880df5 analyze_functions ../../gcc/gcc/cgraphunit.c:1054 0x88273f finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2338 0x671c70 cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4684 /* If decl is a clone of an abstract function, mark that abstract function so that we don't release its body. The DECL_INITIAL() of that abstract function declaration will be later needed to output debug info. */ if (DECL_ABSTRACT_ORIGIN (decl)) { struct cgraph_node *origin_node = cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl)); 1054 origin_node->used_as_abstract_origin = true; }