__attribute__(__format__(__printf__, 1, 2) gives bogus error "format string argument not a string type" when format itself is built from variable arguments.
gcc version 4.3.1. I have checked that this does not happen with 4.2.4. -- Summary: Checking printf format of recursive va_args. Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cazfi74 at gmail dot com GCC build triplet: i686-linux-gnu GCC host triplet: i686-linux-gnu GCC target triplet: i686-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36569