PR c++/60572
* init.c (build_zero_init_1): Ignore fields with error_mark_node
type.
* g++.dg/init/pr60572.C: New test.
From-SVN: r208734
+2014-03-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/60572
+ * init.c (build_zero_init_1): Ignore fields with error_mark_node
+ type.
+
2014-03-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/51474
if (TREE_CODE (field) != FIELD_DECL)
continue;
+ if (TREE_TYPE (field) == error_mark_node)
+ continue;
+
/* Don't add virtual bases for base classes if they are beyond
the size of the current field, that means it is present
somewhere else in the object. */
+2014-03-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/60572
+ * g++.dg/init/pr60572.C: New test.
+
2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
* gcc.target/arm/neon-modes-3.c: Add "-g" option.
--- /dev/null
+// PR c++/60572
+// { dg-do compile }
+
+struct A
+{
+ A x; // { dg-error "incomplete type" }
+ virtual ~A () {}
+};
+
+struct B : A
+{
+ B () : A () {}
+};