This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++ Patch] PR 33213
- From: Paolo Carlini <pcarlini at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gdr at cs dot tamu dot edu
- Date: Fri, 28 Sep 2007 19:45:26 +0200
- Subject: [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;