https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113414
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- And IMO it's not really "wrong" to suggest %lld. Using %lld may not be what you really want, but it's at least allowed by the standard (while using %d here is prohibited and leading to an undefined behavior).