[Bug c++/70572] [4.9/5/6 Regression] ICE on code with decltype (auto) in digest_init_r, at cp/typeck2.c:1103 with -std=c++14

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 20:55:00 GMT 2016


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.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-06-14  Paolo Carlini  <paolo.carlini@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


More information about the Gcc-bugs mailing list