Fix PR c++/60052 and PR c++/60053.
authorabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Feb 2014 07:47:55 +0000 (07:47 +0000)
committerabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Feb 2014 07:47:55 +0000 (07:47 +0000)
commite966f4c3fcc65550b2fc0c07650ae1edd3d5a2b6
tree60d53f80a20ab90add4fcf4cdf2b8396b7bc5df3
parentca4dd83f2841bec57bf4b482aa6038b71a055790
Fix PR c++/60052 and PR c++/60053.

PR c++/60052
PR c++/60053
* parser.c (cp_parser_parameter_declaration_list): Correctly reset
implicit_template_scope upon leaving an out-of-line generic member
function definition.

PR c++/60052
PR c++/60053
* g++.dg/cpp1y/pr60052.C: New testcase.
* g++.dg/cpp1y/pr60053.C: New testcase.

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