http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51934
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-23 15:58:01 UTC --- I bet you'd have to instantiate the template to see the errors. Nevertheless, it would be a bad idea to add __attribute__((format)) to the testcase and expect that we don't error on that, perhaps one day we'd error on it even when not instantiated.