This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 "" }
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]