[Bug c++/106893] [12/13 Regression] auto deduces wrong type for function pointer
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Sep 12 19:47:12 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106893
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:03381beccb52c0e2c15da3b8b8dfa3bb6eb71df9
commit r13-2632-g03381beccb52c0e2c15da3b8b8dfa3bb6eb71df9
Author: Jason Merrill <jason@redhat.com>
Date: Mon Sep 12 13:47:34 2022 -0400
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.
More information about the Gcc-bugs
mailing list