PR c/35744
* attribs.c (decl_attributes): Return early on errorneous node.
* gcc.dg/attr-error-1.c: New test.
From-SVN: r134409
2008-04-17 Volker Reichelt <v.reichelt@netcologne.de>
+ PR c/35744
+ * attribs.c (decl_attributes): Return early on errorneous node.
+
PR c/35436
* c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
tree a;
tree returned_attrs = NULL_TREE;
+ if (TREE_TYPE (*node) == error_mark_node)
+ return NULL_TREE;
+
if (!attributes_initialized)
init_attributes ();
2008-04-17 Volker Reichelt <v.reichelt@netcologne.de>
+ PR c/35744
+ * gcc.dg/attr-error-1.c: New test.
+
PR c/35436
* gcc.dg/format/gcc_gfc-2.c: New test.
--- /dev/null
+/* PR c/35744 */
+
+typedef char a[N] __attribute__((aligned(4))); /* { dg-error "undeclared" } */
+
+void c[1] __attribute__((vector_size(8))); /* { dg-error "array of voids" } */
+
+void b[1] __attribute__((may_alias)); /* { dg-error "array of voids" } */
+
+struct A
+{
+ void d[1] __attribute__((packed)); /* { dg-error "array of voids" } */
+};