[Bug c++/105779] [12/13 Regression] static function with auto return type not being resolved correctly

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 1 19:53:33 GMT 2022


--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill


commit r12-8446-g819e3fda1e0fc4cc07f5fd9211cdb38cdec1b901
Author: Jason Merrill <jason@redhat.com>
Date:   Tue May 31 16:17:58 2022 -0400

    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


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


            * g++.dg/cpp1y/auto-fn63.C: New test.

More information about the Gcc-bugs mailing list