Patch: PR c++/28114: Check for error_mark_node

Steve Ellcey sje@cup.hp.com
Mon Jun 26 17:43:00 GMT 2006


Here is a test case for PR 28114, tested on IA64 Linux.  OK to checkin?

I didn't look for a specific error message since I don't think the exact
message is important in this case, just the fact that it doesn't ICE.


Steve Ellcey
sje@cup.hp.com

2006-06-26  Steve Ellcey  <sje@cup.hp.com>

	PR c++/28114
	* g++.dg/other/pr28114.C: New.

Index: pr28114.C
===================================================================
--- pr28114.C	(revision 0)
+++ pr28114.C	(revision 0)
@@ -0,0 +1,7 @@
+
+template<int> void foo(struct {}*); // { dg-error "" }
+
+void bar()
+{
+  foo<0>(0); // { dg-error "" }
+}



More information about the Gcc-patches mailing list