[Bug c++/60065] [c++1y] ICE with auto parameter pack
abutcher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 25 03:48:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60065
--- Comment #3 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Tue Feb 25 03:47:24 2014
New Revision: 208106
URL: http://gcc.gnu.org/viewcvs?rev=208106&root=gcc&view=rev
Log:
Fix PR c++/60065.
PR c++/60065
* parser.c (cp_parser_direct_declarator): Don't save and
restore num_template_parameter_lists around call to
cp_parser_parameter_declaration_list.
(function_being_declared_is_template_p): New predicate.
(cp_parser_parameter_declaration_list): Use
function_being_declared_is_template_p as predicate for
inspecting current function template parameter list length
rather than num_template_parameter_lists.
PR c++/60065
* g++.dg/cpp1y/pr60065.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/pr60065.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list