/cp
2007-07-08 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* pt.c (unify): Never pass error_mark_node to template_decl_level.
/testsuite
2007-07-08 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* g++.dg/template/operator10.C: New.
From-SVN: r126470
+2007-07-08 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/30535
+ * pt.c (unify): Never pass error_mark_node to template_decl_level.
+
2007-07-07 Mark Mitchell <mark@codesourcery.com>
PR c++/32232
case TEMPLATE_TEMPLATE_PARM:
case BOUND_TEMPLATE_TEMPLATE_PARM:
tparm = TREE_VALUE (TREE_VEC_ELT (tparms, 0));
+ if (tparm == error_mark_node)
+ return 1;
if (TEMPLATE_TYPE_LEVEL (parm)
!= template_decl_level (tparm))
+2007-07-08 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/30535
+ * g++.dg/template/operator10.C: New.
+
2007-07-08 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32217
--- /dev/null
+// PR c++/30535
+
+struct A {};
+
+template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" }
+
+int i = A() - 0; // { dg-error "no match" }