PR c++/77790 - ICE with auto function in C++11 mode
commit71d4cbd29911bf15c1ac15499e6be461935777a1
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Feb 2017 17:29:45 +0000 (11 17:29 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Feb 2017 17:29:45 +0000 (11 17:29 +0000)
treedf0e62895260012d5366675ce6bccec695312750
parent6211972a359403b59a4f44a5ba66085666245012
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.

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