PR c++/34100
* pt.c (apply_late_template_attributes): Do nothing if decl's type is
error_mark_node.
* g++.dg/template/crash73.C: New test.
From-SVN: r130220
+2007-11-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/34100
+ * pt.c (apply_late_template_attributes): Do nothing if decl's type is
+ error_mark_node.
+
2007-11-13 Jakub Jelinek <jakub@redhat.com>
PR c++/34054
}
if (DECL_P (*decl_p))
- p = &DECL_ATTRIBUTES (*decl_p);
+ {
+ if (TREE_TYPE (*decl_p) == error_mark_node)
+ return;
+ p = &DECL_ATTRIBUTES (*decl_p);
+ }
else
p = &TYPE_ATTRIBUTES (*decl_p);
+2007-11-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/34100
+ * g++.dg/template/crash73.C: New test.
+
2007-11-15 Jakub Jelinek <jakub@redhat.com>
PR middle-end/23848
--- /dev/null
+// PR c++/34100
+// { dg-do compile }
+
+template<typename T> struct A
+{
+ typedef typename T::X Y __attribute__((vector_size(8))); // { dg-error "is not a class, struct" }
+};
+
+A<int> a;