https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102419
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- Note that you can make GCC effectively behave like Clang/MSVC here changing Y's constraint-expression to trivially depend on its template parameter: template<class, class U> concept Y = requires { typename U; };