This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix C++ PR's 31138, 31140, 31141
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Doug Gregor <doug dot gregor at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 30 Mar 2007 12:32:11 -0700
- Subject: Re: [PATCH] Fix C++ PR's 31138, 31140, 31141
- References: <24b520d20703121553s7b7dadd4y48de73913bcc5555@mail.gmail.com>
Doug Gregor wrote:
> :ADDPATCH c++:
>
> 2007-03-12 Douglas Gregor <doug.gregor@gmail.com>
>
> PR c++/31138
> PR c++/31140
> PR c++/31141
> * parser.c (declarator_can_be_parameter_pack): New.
> (cp_parser_template_parameter): Only parse the `...' if the
> declarator can be a parameter pack.
> (cp_parser_parameter_declaration): Ditto. Also, handle when TYPE
> is NULL.
> * pt.c (find_parameter_packs_r): Look into the bounds on integer
> types (they could be used as array bounds).
> (check_for_bare_parameter_packs): Deal with TEMPLATE_PARM_INDEX.
> (tsubst_pack_expansion): Handle failure to expand parameter
> packs.
>
> 2007-03-12 Douglas Gregor <doug.gregor@gmail.com>
>
> * g++.dg/parser/pr31138.C: New.
> * g++.dg/parser/pr31140.C: New.
> * g++.dg/parser/pr31141.C: New.
:REVIEWMAIL: OK
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713