/cp
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* pt.c (unify): Never pass error_mark_node to template_decl_level.
/testsuite
2007-07-24 Paolo Carlini <pcarlini@suse.de>
PR c++/30535
* g++.dg/template/operator10.C: New.
From-SVN: r126871
+2007-07-24 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/30535
+ * pt.c (unify): Never pass error_mark_node to template_decl_level.
+
2007-07-19 Release Manager
* GCC 4.2.1 released.
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-24 Paolo Carlini <pcarlini@suse.de>
+
+ PR c++/30535
+ * g++.dg/template/operator10.C: New.
+
2007-07-21 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/32678
--- /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" }