/cp
commit658b632cabdaf681ee0bd3b2ce451feab28a4396
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 May 2017 08:34:02 +0000 (10 08:34 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 May 2017 08:34:02 +0000 (10 08:34 +0000)
tree1b95a2649f2744301ace45d27e808db0a87b5c52
parent682408f272aff5d3a8a54ad03ea5b67317350d7f
/cp
2017-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/80145
* decl.c (finish_function): To improve error recovery, change the
logic for calling apply_deduced_return_type.

/testsuite
2017-05-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/80145
* g++.dg/cpp1y/auto-fn37.C: New.
* g++.dg/cpp1y/auto-fn38.C: Likewise.

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