OSDN Git Service

PR c++/35297
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2009 20:43:01 +0000 (20:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Jan 2009 20:43:01 +0000 (20:43 +0000)
commitd87d979efc70b5f6627ca12ec01d7b3cb5d701f6
treebae01ef9b1a395e476eaa1c3ade6dd59e43205c9
parentf1a3ada1a31dd5264b8d9020cf8f2b27479615f5
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143166 138bc75d-0d04-0410-961f-82ee72b054a4
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]