PR c++/27713
* pt.c (push_template_decl_real): Return error_mark_node instead
of broken decl.
* g++.dg/template/new6.C: New test.
From-SVN: r114211
+2006-05-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27713
+ * pt.c (push_template_decl_real): Return error_mark_node instead
+ of broken decl.
+
2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27716
template. ... Template allocation functions shall
have two or more parameters. */
error ("invalid template declaration of %qD", decl);
- return decl;
+ return error_mark_node;
}
}
else if (DECL_IMPLICIT_TYPEDEF_P (decl)
+2006-05-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27713
+ * g++.dg/template/new6.C: New test.
+
2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27716
--- /dev/null
+// PR c++/27713
+// { dg-do compile }
+
+struct A
+{
+ template<int> friend void* operator new(__SIZE_TYPE__); // { dg-error "invalid template" }
+};