This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/60065] [c++1y] ICE with auto parameter pack


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]