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]

[C++ Patch] PR 33213


Hi all, hi Gaby,

I have the below patchlet for this diagnostic PR. Tested x86_64-linux.

Ok for mainline?

Paolo.

//////////////////////
cp/
2007-09-28  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33213
	* error.c (dump_decl): Deal with TYPE_PACK_EXPANSION.

testsuite/
2007-09-28  Paolo Carlini  <pcarlini@suse.de>

	PR c++/33213
	* g++.dg/cpp0x/variadic79.C: New.
Index: testsuite/g++.dg/cpp0x/variadic79.C
===================================================================
*** testsuite/g++.dg/cpp0x/variadic79.C	(revision 0)
--- testsuite/g++.dg/cpp0x/variadic79.C	(revision 0)
***************
*** 0 ****
--- 1,7 ----
+ // PR c++/33213
+ // { dg-do compile }
+ // { dg-options "-std=gnu++0x" }
+ 
+ template<template<typename> class...> struct A;
+ 
+ template<template<typename...> class... B> struct A<B...> {}; // { dg-error "mismatch|'template<class ...> class B ...'" }
Index: cp/error.c
===================================================================
*** cp/error.c	(revision 128866)
--- cp/error.c	(working copy)
*************** dump_decl (tree t, int flags)
*** 955,960 ****
--- 955,961 ----
        break;
  
      case UNBOUND_CLASS_TEMPLATE:
+     case TYPE_PACK_EXPANSION:
        dump_type (t, flags);
        break;
  

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