c++: auto member function and auto variable [PR106893]
commit03381beccb52c0e2c15da3b8b8dfa3bb6eb71df9
authorJason Merrill <jason@redhat.com>
Mon, 12 Sep 2022 17:47:34 +0000 (12 13:47 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 12 Sep 2022 19:46:59 +0000 (12 15:46 -0400)
tree3a8367006366573d5bff11efa75bdced4df166b8
parent6bcca5f642eb950a3cef024ea49a35e4792306f6
c++: auto member function and auto variable [PR106893]

As with PR105623, we need to call mark_single_function sooner to
resolve the type of a BASELINK.

PR c++/106893
PR c++/90451

gcc/cp/ChangeLog:

* decl.cc (cp_finish_decl): Call mark_single_function.

gcc/testsuite/ChangeLog:

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