https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96780

--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:180625ae72b3f733813a360fae4f0d6ce79eccdc

commit r15-2756-g180625ae72b3f733813a360fae4f0d6ce79eccdc
Author: Patrick Palka <ppa...@redhat.com>
Date:   Tue Aug 6 11:51:45 2024 -0400

    c++: fold calls to std::forward_like [PR96780]

    This extends our folding of cast-like standard library functions
    to also include C++23's std::forward_like.

            PR c++/96780

    gcc/cp/ChangeLog:

            * cp-gimplify.cc (cp_fold) <case CALL_EXPR>: Fold calls
            to std::forward_like as well.

    gcc/testsuite/ChangeLog:

            * g++.dg/opt/pr96780.C: Also test std::forward_like folding.

    Reviewed-by: Marek Polacek <mpola...@redhat.com>
    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to