re PR c++/60190 ([c++1y] ICE with invalid return type of template lambda)
authorAdam Butcher <adam@jessamine.co.uk>
Tue, 18 Feb 2014 21:07:48 +0000 (21:07 +0000)
committerAdam Butcher <abutcher@gcc.gnu.org>
Tue, 18 Feb 2014 21:07:48 +0000 (21:07 +0000)
commitb19fd0fd71f4ffb3f01d9b4a6333b38744e13c64
tree24a76ab51571fc0f1b3a8c4ade8ab33c9fa88478
parent223cdd1548cadbcf2ae3eee4931e569b4c603f96
re PR c++/60190 ([c++1y] ICE with invalid return type of template lambda)

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.

From-SVN: r207852
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr60190.C [new file with mode: 0644]