Re: [PATCH] c++: fix __is_invocable for std::reference_wrapper [PR121055]

2025-07-22 Thread Jason Merrill
On 7/22/25 4:18 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? OK, and I think go ahead and apply it to the 15 branch as well. -- >8 -- Our implementation of the INVOKE spec ([func.require]) was incorrectly treating reference_wrapper:

[PATCH] c++: fix __is_invocable for std::reference_wrapper [PR121055]

2025-07-22 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- Our implementation of the INVOKE spec ([func.require]) was incorrectly treating reference_wrapper::get() as returning T instead of T&, which notably makes a difference when invoking a ref-qualified memfn poin