From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5206 invoked by alias); 20 Jun 2014 12:34:44 -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 5168 invoked by uid 48); 20 Jun 2014 12:34:40 -0000 From: "jgreenhalgh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc Date: Fri, 20 Jun 2014 12:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jgreenhalgh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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-06/txt/msg01689.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61510 --- Comment #4 from jgreenhalgh at gcc dot gnu.org --- Obviously something simple like this will fix the problem, but I don't know the area to say that it doesn't just mask a deeper bug. Honza? --- 2014-06-19 James Greenhalgh * cgraphunit.c (analyze_functions): Check we have an origin node before dereferencing it. diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 1b7ab330a3e51a9bc3336f64998f4d89b45d342b..82e5a6838e36c464191c533e163a00c825265c84 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1051,7 +1051,8 @@ analyze_functions (void) { struct cgraph_node *origin_node = cgraph_get_node (DECL_ABSTRACT_ORIGIN (decl)); - origin_node->used_as_abstract_origin = true; + if (origin_node) + origin_node->used_as_abstract_origin = true; } } else