Fix PR c++/60190.
authorabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Feb 2014 21:07:48 +0000 (21:07 +0000)
committerabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Feb 2014 21:07:48 +0000 (21:07 +0000)
commit040882d060ec53f108fa683fe408c398331201f6
tree24a76ab51571fc0f1b3a8c4ade8ab33c9fa88478
parent737ae9ccf92522b560de4b4db94d42e4f455912e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207852 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr60190.C [new file with mode: 0644]