https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123112
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
The fix is to make the template argument within the concept-id dependent:
template<typename T, auto V = quantity_character::real_scalar>
requires RepresentationOf<T, V>
void foo(T)
