https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70572
--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue Jun 14 20:55:08 2016 New Revision: 237460 URL: https://gcc.gnu.org/viewcvs?rev=237460&root=gcc&view=rev Log: /cp 2016-06-14 Paolo Carlini <paolo.carl...@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-06-14 Paolo Carlini <paolo.carl...@oracle.com> PR c++/70572 * g++.dg/cpp1y/auto-fn31.C: New. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/auto-fn31.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/decl.c branches/gcc-6-branch/gcc/testsuite/ChangeLog