PR c++/77790 - ICE with auto function in C++11 mode
authorJason Merrill <jason@redhat.com>
Sat, 11 Feb 2017 17:29:45 +0000 (12:29 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 11 Feb 2017 17:29:45 +0000 (12:29 -0500)
commitbc61048a143b10d8efdc50195f2fc949d036ca92
treedf0e62895260012d5366675ce6bccec695312750
parent31deea5e716be71a07d8f1ec4670e9a074b32127
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.

From-SVN: r245358
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]