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++/27019 - set error_mark_node


> It would also be nice if you could add the simple testcase from the
> bugzilla PR to the g++ testsuite.
> 
> Roger
> --

Here is a test case for pr27019.  Tested on IA64 Linux.  OK to checkin?
I am not sure if there is a better location for it than g++.dg/other.  I
thought about g++.dg/warn but I wasn't sure if that was for errors and
warnings of was supposed to be just warnings.

Steve Ellcey
sje@cup.hp.com


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

	PR c++/27019
	* g++.dg/other/pr27019.C: New.

Index: g++.dg/other/pr27019.C
===================================================================
--- g++.dg/other/pr27019.C	(revision 0)
+++ g++.dg/other/pr27019.C	(revision 0)
@@ -0,0 +1,11 @@
+
+// { dg-do compile }
+// { dg-options "" }
+
+struct A
+{
+            int i;
+                int z[1];
+};
+
+A a = { z:{} }; // { dg-error "unimplemented" }


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