https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110143
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- See [format.formatter.spec[ paragraph 2 bullet 2.4: For each charT, the pointer type specializations template<> struct formatter<nullptr_t, charT>; template<> struct formatter<void*, charT>; template<> struct formatter<const void*, charT>; Those are the pointer specializations that are supported, and you can't use them to format int* Cast to void* first.