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] PR 33461


Mark Mitchell wrote:

OK.

Thanks Mark. I'm taking the liberty to also add the testcase from PR 31441, fixed by the same patch, and close both PRs.

Paolo.

///////////////

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

	PR c++/31441
	* g++.dg/cpp0x/variadic83.C: New.
Index: g++.dg/cpp0x/variadic83.C
===================================================================
*** g++.dg/cpp0x/variadic83.C	(revision 0)
--- g++.dg/cpp0x/variadic83.C	(revision 0)
***************
*** 0 ****
--- 1,8 ----
+ // PR c++/31441
+ // { dg-options "-std=gnu++0x" }
+ 
+ template<typename> struct A;
+ 
+ template<typename... T> struct A<T...> { }; // { dg-error "cannot expand" }
+ 
+ A<int> a; // { dg-error "incomplete type" }

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