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: [C++ Patch PING] PR 31446 (+ 28639, 30299)


Mark Mitchell wrote:
> OK.
>   
Thanks, committed. I have also added the testcases from PR 28639 and 30299.

Paolo.

/////////////////
2007-10-16  Paolo Carlini  <pcarlini@suse.de>

	PR c++/28639
	PR c++/30299
	* g++.dg/template/void12.C: New.
	* g++.dg/template/void13.C: New.
Index: g++.dg/template/void12.C
===================================================================
--- g++.dg/template/void12.C	(revision 0)
+++ g++.dg/template/void12.C	(revision 0)
@@ -0,0 +1,7 @@
+// PR c++/28639
+
+template<void> struct A  // { dg-error "not a valid type" }
+{
+  static const int i = 1;
+  char a[i];
+};
Index: g++.dg/template/void13.C
===================================================================
--- g++.dg/template/void13.C	(revision 0)
+++ g++.dg/template/void13.C	(revision 0)
@@ -0,0 +1,11 @@
+// PR c++/30299
+
+struct A
+{
+  int i;
+};
+
+template<void> struct B : A  // { dg-error "not a valid type" }
+{
+  B() { this->i; }
+};

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