[Bug c++/77790] [5/6/7 Regression] ICE on valid C++14 code when compiling with "-std=c++11": in push_access_scope, at cp/pt.c:227

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Feb 11 17:30:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Sat Feb 11 17:29:45 2017
New Revision: 245358

URL: https://gcc.gnu.org/viewcvs?rev=245358&root=gcc&view=rev
Log:
        PR c++/77790 - ICE with auto function in C++11 mode

        * decl.c (undeduced_auto_decl): Remove C++14 limitation.
        (require_deduced_type): Add complain parm, return bool.
        * cp-tree.h: Adjust.
        * decl2.c (mark_used): Use require_deduced_type.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn35.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/g++.dg/cpp0x/auto41.C


More information about the Gcc-bugs mailing list