https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109763
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jason Liam from comment #4) > template < typename T > > concept test = std::same_as <T::value, int(int) >; That is because the code is invalid and you need typename in front of T::value if you want to refer to T::value as a type rather than a value here like so: concept test = std::same_as <typename T::value, int(int) >;