re PR c++/35297 (Compiling error with variadic template with fixed parameter with...
authorJason Merrill <jason@redhat.com>
Wed, 7 Jan 2009 20:43:01 +0000 (15:43 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 7 Jan 2009 20:43:01 +0000 (15:43 -0500)
commitffaf1e05dd024cc57a21cea23722e0e37e5d8ebb
treebae01ef9b1a395e476eaa1c3ade6dd59e43205c9
parent30af0edbf4637051e029063027052b843dbe8aac
re PR c++/35297 (Compiling error with variadic template with fixed parameter with default type.)

        PR c++/35297
        PR c++/35477
        PR c++/35784
        PR c++/36846
        PR c++/38276
        * pt.c (check_default_tmpl_args): Don't complain about
        out-of-order parameter packs in the enclosing class
        or parameter packs after default args.
        (coerce_template_parms): If we have more than one
        parameter pack, don't flatten argument packs.
        (template_args_equal): Handle argument packs.
        (comp_template_args): Don't flatten argument packs.
        (check_instantiated_arg): Split out from...
        (check_instantiated_args): Here.  Handle arg packs.
        (convert_template_argument): Just check that nontype argument
        packs have the right type.

From-SVN: r143166
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic65.C
gcc/testsuite/g++.dg/cpp0x/variadic82.C
gcc/testsuite/g++.dg/cpp0x/variadic83.C
gcc/testsuite/g++.dg/cpp0x/variadic92.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic93.C [new file with mode: 0644]