]> gcc.gnu.org Git - gcc.git/commit
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:20:27 +0000 (15:20 -0400)
commit72e52b88582e738c8b8bde5f85af63d3a0e15d2b
tree34d204d4404904275a5a8788c6ea9e31d478c96f
parentae54c1b09963779c5c3914782324ff48af32e2f1
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]
This page took 0.05778 seconds and 5 git commands to generate.