https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109763
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc correctly accepts this: template <int t> constexpr bool d = true; template < typename T > concept test = d<T::value>; Without a typename as T::value here refers to a value for the non-type template argument.