This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
- From: "jgreenhalgh at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jun 2014 12:34:38 +0000
- Subject: [Bug regression/61510] [4.10 Regression]: 20_util/scoped_allocator/requirements/explicit_instantiation.cc and tr1/6_containers/tuple/requirements/explicit_instantiation.cc
- Auto-submitted: auto-generated
- References: <bug-61510-4 at http dot gcc dot gnu dot org/bugzilla/>
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 <james.greenhalgh@arm.com>
* 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