Disallow implicit function templates in local functions unless defining a lambda.
commit2b7d858c79410630f5a154874f394c5f95a7e2ad
authorabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Nov 2013 07:43:55 +0000 (25 07:43 +0000)
committerabutcher <abutcher@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 25 Nov 2013 07:43:55 +0000 (25 07:43 +0000)
tree7f720b0c9e4110c48d04a4c1bce549fed22023b5
parent861033d5daa8c977326805754920f31641a9d5fe
Disallow implicit function templates in local functions unless defining a lambda.

gcc/cp/
PR c++/59112
PR c++/59113
* parser.c (cp_parser_parameter_declaration_clause): Disallow implicit
function templates in local functions unless defining a lambda.

gcc/testsuite/
PR c++/59112
PR c++/59113
g++.dg/cpp1y/pr58533.C: Updated testcase.
g++.dg/cpp1y/pr59112.C: New testcase.
g++.dg/cpp1y/pr59113.C: New testcase.

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