[Bug c++/60190] [c++1y] ICE with invalid return type of template lambda

abutcher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 18 21:08:00 GMT 2014


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

--- Comment #4 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Tue Feb 18 21:07:48 2014
New Revision: 207852

URL: http://gcc.gnu.org/viewcvs?rev=207852&root=gcc&view=rev
Log:
Fix PR c++/60190.

    PR c++/60190
    * parser.c (cp_parser_lambda_declarator_opt): Pop template parameter
    scope whenever a template parameter list has been started, independent
    of whether the function call operator was well-formed or not.

    PR c++/60190
    * g++.dg/cpp1y/pr60190.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/pr60190.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list