https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111703
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
FWIW a workaround is to ensure an equivalent 'f(x)' call is first checked in a
non-template context, e.g.
#include <utility>
using P = std::pair<int, int>;
void (*f)(P);
static_assert(requires(P x) { f(x); }); // work around PR111703
int main(){
[](auto) {
P x;
f(x);
};
}