PR c++/83947 - ICE with auto declarations.
authorJason Merrill <jason@redhat.com>
Tue, 23 Jan 2018 21:23:53 +0000 (16:23 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Jan 2018 21:23:53 +0000 (16:23 -0500)
commitd78201d30c7c5a8f15f0265d64386233e134fb7d
tree008dba49991a80ec4ff89d859da2dda52b3ec9d6
parent7c719d0849416861fa96317ade2e2035d6ea071b
PR c++/83947 - ICE with auto declarations.

* pt.c (do_auto_deduction): Don't deduce from an auto decl.
* decl.c (undeduced_auto_decl): Limit to vars and fns.

From-SVN: r257000
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/auto-fn46.C [new file with mode: 0644]