diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2007-03-31 12:41:30 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-03-31 12:41:30 +0000 |
commit | d393153e7fb5a4bc1ed79b72c5c6d6c6ccc195b6 (patch) | |
tree | 8fa804b4fffaa8361c5c0a3d4f7d5dd2304adab7 /gcc/lambda-code.c | |
parent | d54a92b5f680c62ae4a129aece857a934e167809 (diff) | |
download | gcc-d393153e7fb5a4bc1ed79b72c5c6d6c6ccc195b6.zip gcc-d393153e7fb5a4bc1ed79b72c5c6d6c6ccc195b6.tar.gz gcc-d393153e7fb5a4bc1ed79b72c5c6d6c6ccc195b6.tar.bz2 |
re PR c++/31138 (ICE with ellipsis)
2007-03-31 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-31 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/parser/pr31138.C: New.
* g++.dg/parser/pr31140.C: New.
* g++.dg/parser/pr31141.C: New.
From-SVN: r123380
Diffstat (limited to 'gcc/lambda-code.c')
0 files changed, 0 insertions, 0 deletions