------- Comment #5 from dgregor at gcc dot gnu dot org  2008-01-15 18:50 -------
Subject: Bug 34751

Author: dgregor
Date: Tue Jan 15 18:49:47 2008
New Revision: 131548

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131548
Log:
2008-01-15  Douglas Gregor  <[EMAIL PROTECTED]>

        PR c++/34751
        * pt.c (coerce_template_parameter_pack): When substituting into
        the type of a non-type template parameter pack. use the
        deduced/substituted arguments.
        * parser.c (declarator_can_be_parameter_pack): A pointer-to-member
        can be a parameter pack with the ellipsis following it.  When we
        have an erroneous declaration, allow it to be a parameter pack.
        (cp_parser_template_parameter): Complain about default
        arguments on non-type template parameter packs, and parse them
        using the new cp_parser_default_argument.
        (cp_parser_parameter_declaration): Complain about parameter packs
        with default arguments. Move parsing of default arguments into a
        new function, cp_parser_default_argument.
        (cp_parser_default_argument): New; extracted from
        cp_parser_parameter_declaration.

2008-01-15  Douglas Gregor  <[EMAIL PROTECTED]>

        PR c++/34751
        * g++.dg/cpp0x/vt-34751.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-34751.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34751

Reply via email to