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

2024-08-06 Thread Jason Merrill
On 8/6/24 10:01 AM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? I might add it after std::forward instead of at the bottom? OK either way. -- >8 -- This extends our folding of cast-like standard library functions to also include C++2

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

2024-08-06 Thread Marek Polacek
On Tue, Aug 06, 2024 at 10:01:22AM -0400, Patrick Palka wrote: > Bootstrapped and regtested on x86_64-pc-linux-gnu, does this > look OK for trunk? Looks simple & good. Reviewed-by: Marek Polacek > -- >8 -- > > This extends our folding of cast-like standard library functions > to also include

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

2024-08-06 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- 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) : Fold calls t