/cp
2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58448
* pt.c (tsubst): Use error_operand_p on parameter t.
/testsuite
2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58448
* g++.dg/template/crash117.C: New.
From-SVN: r203218
+2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58448
+ * pt.c (tsubst): Use error_operand_p on parameter t.
+
2013-10-04 Marc Glisse <marc.glisse@inria.fr>
PR c++/19476
enum tree_code code;
tree type, r = NULL_TREE;
- if (t == NULL_TREE || t == error_mark_node
+ if (t == NULL_TREE
|| t == integer_type_node
|| t == void_type_node
|| t == char_type_node
|| TREE_CODE (t) == TRANSLATION_UNIT_DECL)
return t;
+ if (error_operand_p (t))
+ return error_mark_node;
+
if (DECL_P (t))
return tsubst_decl (t, args, complain);
+2013-10-04 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/58448
+ * g++.dg/template/crash117.C: New.
+
2013-10-04 Marc Glisse <marc.glisse@inria.fr>
PR c++/19476
--- /dev/null
+// PR c++/58448
+
+class SmallVector; struct Types4;
+template <typename, typename, typename, typename> struct Types {
+ typedef Types4<>::Constructable // { dg-error "template|typedef|expected" }
+} Types<SmallVector, SmallVector, SmallVector, SmallVector>:: > // { dg-error "expected" }