diff options
author | Patrick Palka <ppalka@redhat.com> | 2024-08-06 11:51:45 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2024-08-06 11:51:45 -0400 |
commit | 180625ae72b3f733813a360fae4f0d6ce79eccdc (patch) | |
tree | 31ff30c40a6c8e0bd3746b984267b59d25e8075f /libcpp | |
parent | af1010268f81fc891a6bbf8ed9d5b8a3b5ce44cb (diff) | |
download | gcc-180625ae72b3f733813a360fae4f0d6ce79eccdc.zip gcc-180625ae72b3f733813a360fae4f0d6ce79eccdc.tar.gz gcc-180625ae72b3f733813a360fae4f0d6ce79eccdc.tar.bz2 |
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 <mpolacek@redhat.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions