PR c++/27315
* pt.c (do_decl_instantiation): Return early on invalid decl.
* g++.dg/template/operator6.C: New test.
* g++.dg/template/incomplete3.C: New test.
From-SVN: r113780
+2006-05-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27315
+ * pt.c (do_decl_instantiation): Return early on invalid decl.
+
2006-05-11 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27547
tree result = NULL_TREE;
int extern_p = 0;
- if (!decl)
+ if (!decl || decl == error_mark_node)
/* An error occurred, for which grokdeclarator has already issued
an appropriate message. */
return;
+2006-05-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27315
+ * g++.dg/template/operator6.C: New test.
+ * g++.dg/template/incomplete3.C: New test.
+
2005-05-13 Zdenek Dvorak <dvorakz@suse.cz>
PR rtl-optimization/27335
--- /dev/null
+// PR c++/27315
+// { dg-do compile }
+
+struct A; // { dg-error "forward declaration" }
+template void A::foo<0>(); // { dg-error "before|undefined" }
--- /dev/null
+// PR c++/27315
+// { dg-do compile }
+
+template void operator+; // { dg-error "non-function" }