Re: [PATCH] c++: mark_single_function and SFINAE [PR108282]

2023-01-04 Thread Jason Merrill via Gcc-patches
On 1/4/23 11:37, Patrick Palka wrote: We typically ignore mark_used failure when in a non-SFINAE context for sake of better error recovery. But in mark_single_function we're instead ignoring mark_used failure in a SFINAE context, which ends up causing the second static_assert here to incorrectly

[PATCH] c++: mark_single_function and SFINAE [PR108282]

2023-01-04 Thread Patrick Palka via Gcc-patches
We typically ignore mark_used failure when in a non-SFINAE context for sake of better error recovery. But in mark_single_function we're instead ignoring mark_used failure in a SFINAE context, which ends up causing the second static_assert here to incorrectly fail. Bootstrapped and regtested on x8