re PR c++/33213 (Broken diagnostic: 'type_pack_expansion' not supported by dump_decl)

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.

From-SVN: r128870
This commit is contained in:
Paolo Carlini 2007-09-28 17:52:22 +00:00 committed by Paolo Carlini
parent 18080e8e7a
commit 930a1e6372
4 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-09-28 Paolo Carlini <pcarlini@suse.de>
PR c++/33213
* error.c (dump_decl): Deal with TYPE_PACK_EXPANSION.
2007-09-28 Paolo Carlini <pcarlini@suse.de>
PR c++/33118

View File

@ -955,6 +955,7 @@ dump_decl (tree t, int flags)
break;
case UNBOUND_CLASS_TEMPLATE:
case TYPE_PACK_EXPANSION:
dump_type (t, flags);
break;

View File

@ -1,3 +1,8 @@
2007-09-28 Paolo Carlini <pcarlini@suse.de>
PR c++/33213
* g++.dg/cpp0x/variadic79.C: New.
2007-09-28 Michael Matz <matz@suse.de>
Jakub Jelinek <jakub@redhat.com>

View File

@ -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 ...'" }