re PR c++/70572 (ICE on code with decltype (auto) in digest_init_r, at cp/typeck2...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 20 May 2016 16:24:58 +0000 (16:24 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 20 May 2016 16:24:58 +0000 (16:24 +0000)
commitef98d365adbe44502de2af37e773cc474f4767c6
tree5d5d0bdbb739ed3a26cf2a1880515d6e8be04119
parentce3a16ff1f59e6dbf9aa128ede0138927cceee38
re PR c++/70572 (ICE on code with decltype (auto) in digest_init_r, at cp/typeck2.c:1103 with -std=c++14)

/cp
2016-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70572
* decl.c (cp_finish_decl): Check do_auto_deduction return value
and return immediately in case of erroneous code.

/testsuite
2016-05-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/70572
* g++.dg/cpp1y/auto-fn31.C: New.

From-SVN: r236522
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn31.C [new file with mode: 0644]