PR c++/81045 - Wrong type-dependence with auto return type.
commit058e778f2005685c414ee565e503db05cb78e4de
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Jun 2017 02:28:25 +0000 (17 02:28 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 17 Jun 2017 02:28:25 +0000 (17 02:28 +0000)
treeba60737c2834ce10d9f3ebeb73ca2e7043826880
parent23f59d67bd87b44cd27fb2cb779acf284daaab05
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249323 138bc75d-0d04-0410-961f-82ee72b054a4
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]