From: Paolo Carlini Date: Fri, 28 Sep 2007 17:52:22 +0000 (+0000) Subject: re PR c++/33213 (Broken diagnostic: 'type_pack_expansion' not supported by dump_decl) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=930a1e6372869fa553130c5e7fa22c27485b7ec5;p=gcc.git re PR c++/33213 (Broken diagnostic: 'type_pack_expansion' not supported by dump_decl) cp/ 2007-09-28 Paolo Carlini PR c++/33213 * error.c (dump_decl): Deal with TYPE_PACK_EXPANSION. testsuite/ 2007-09-28 Paolo Carlini PR c++/33213 * g++.dg/cpp0x/variadic79.C: New. From-SVN: r128870 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2bddda2e890..7d70e13d2d5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-09-28 Paolo Carlini + + PR c++/33213 + * error.c (dump_decl): Deal with TYPE_PACK_EXPANSION. + 2007-09-28 Paolo Carlini PR c++/33118 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index feb6c31c544..5f78a1bea6b 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -955,6 +955,7 @@ dump_decl (tree t, int flags) break; case UNBOUND_CLASS_TEMPLATE: + case TYPE_PACK_EXPANSION: dump_type (t, flags); break; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b45fd70d43e..f751f173d2e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-09-28 Paolo Carlini + + PR c++/33213 + * g++.dg/cpp0x/variadic79.C: New. + 2007-09-28 Michael Matz Jakub Jelinek diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic79.C b/gcc/testsuite/g++.dg/cpp0x/variadic79.C new file mode 100644 index 00000000000..3ae7f9d079a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic79.C @@ -0,0 +1,7 @@ +// PR c++/33213 +// { dg-do compile } +// { dg-options "-std=gnu++0x" } + +template class...> struct A; + +template class... B> struct A {}; // { dg-error "mismatch|'template class B ...'" }