PR ipa/60457
* ipa.c (symtab_remove_unreachable_nodes): Don't call
cgraph_get_create_node on VAR_DECLs.
* g++.dg/ipa/pr60457.C: New test.
From-SVN: r208454
+2014-03-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR ipa/60457
+ * ipa.c (symtab_remove_unreachable_nodes): Don't call
+ cgraph_get_create_node on VAR_DECLs.
+
2014-03-10 Richard Biener <rguenther@suse.de>
PR middle-end/60474
node->aux = (void *)2;
else
{
- if (DECL_ABSTRACT_ORIGIN (node->decl))
+ if (TREE_CODE (node->decl) == FUNCTION_DECL
+ && DECL_ABSTRACT_ORIGIN (node->decl))
{
struct cgraph_node *origin_node
= cgraph_get_create_node (DECL_ABSTRACT_ORIGIN (node->decl));
+2014-03-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR ipa/60457
+ * g++.dg/ipa/pr60457.C: New test.
+
2014-03-10 Richard Biener <rguenther@suse.de>
PR middle-end/60474
--- /dev/null
+// PR ipa/60457
+// { dg-do compile }
+
+template <class T>
+struct A
+{
+};
+
+struct B : A <B>
+{
+ B ();
+};
+
+B::B ()
+{
+ const int c[] = { 1, 1 };
+}