* c-typeck.c (digest_init): Robustify.
* gcc.dg/init-bad-4.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113153
138bc75d-0d04-0410-961f-
82ee72b054a4
2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR c/25875
+ * c-typeck.c (digest_init): Robustify.
+
* c-typeck.c (pop_init_level): Simplify.
2006-04-21 Steve Ellcey <sje@cup.hp.com>
tree inside_init = init;
if (type == error_mark_node
+ || !init
|| init == error_mark_node
|| TREE_TYPE (init) == error_mark_node)
return error_mark_node;
+2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c/25875
+ * gcc.dg/init-bad-4.c: New test.
+
2006-04-21 Paul Brook <paul@codesourcery.com>
* gcc.dg/arm-vfp1.c: Skip on iWMMXt cpus.
--- /dev/null
+/* PR c/25875 */
+/* Origin: Richard Guenther <rguenth@gcc.gnu.org> */
+/* { dg-do compile } */
+
+struct A { } a = (struct A) {{ (X)0 }}; /* { dg-error "no members|extra brace|near|undeclared|constant|compound" } */