PR c++/81045 - Wrong type-dependence with auto return type.
authorJason Merrill <jason@redhat.com>
Sat, 17 Jun 2017 02:28:25 +0000 (22:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 17 Jun 2017 02:28:25 +0000 (22:28 -0400)
commitccb7042db8997440b8571405742e49b57787490e
treeba60737c2834ce10d9f3ebeb73ca2e7043826880
parentd4b1d43cec7ff278e97e22d1b06d220b7aa86be8
PR c++/81045 - Wrong type-dependence with auto return type.

* pt.c (type_dependent_expression_p): An undeduced auto outside the
template isn't dependent.
* call.c (build_over_call): Instantiate undeduced auto even in a
template.

From-SVN: r249323
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/auto-fn27.C
gcc/testsuite/g++.dg/cpp1y/auto-fn39.C [new file with mode: 0644]