https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85949
Jonny Grant <jg at jguk dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED |--- --- Comment #3 from Jonny Grant <jg at jguk dot org> --- Clang gets the attribute parameter right :- <source>:7:62: error: 'format' attribute parameter 2 is out of bounds void str_fmt(const char * const format, ...) __attribute__ ((format (printf,2,3))); ^ ~ 1 error generated. Compiler returned: 1