https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92496
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Slightly reduced: template<auto V> struct A {}; struct B { constexpr auto operator<=>(const B&) const = default; int value; }; A<B{}> t;