c++: auto function as function argument [PR105779]
authorJason Merrill <jason@redhat.com>
Tue, 31 May 2022 20:17:58 +0000 (16:17 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 1 Jun 2022 19:53:24 +0000 (15:53 -0400)
commit819e3fda1e0fc4cc07f5fd9211cdb38cdec1b901
treeb3c93f85e052acfbb6a2b34ed0c1a9c83ff2e6d6
parente30b73bad9486f11b6b0022ae4a3edfc0f9da4bb
c++: auto function as function argument [PR105779]

This testcase demonstrates that the issue in PR105623 is not limited to
templates, so we should do the marking in a less template-specific place.

PR c++/105779

gcc/cp/ChangeLog:

* call.cc (resolve_args): Call mark_single_function here.
* pt.cc (unify_one_argument): Not here.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/auto-fn63.C: New test.
gcc/cp/call.cc
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1y/auto-fn63.C [new file with mode: 0644]