C++ PATCH to resolve LWG issue 1265

Jakub Jelinek jakub@redhat.com
Fri Oct 25 10:45:00 GMT 2013


On Fri, Oct 25, 2013 at 12:39:58PM +0200, Paolo Carlini wrote:
> On 10/23/2013 09:16 PM, Jason Merrill wrote:
> >The second hunk adds %X for printing an exception-specification in
> >diagnostics.
> 
> In my experience these convenience %? that we have got easily
> trigger warnings during bootstrap/build, eg:
> 
> /scratch/Gcc/svn-dirs/trunk/gcc/cp/error.c:3302:53: warning: unknown
> conversion type character ‘R’ in format [-Wformat]
> /scratch/Gcc/svn-dirs/trunk/gcc/cp/error.c:3302:53: warning: too
> many arguments for format [-Wformat-extra-args]
> 
> I suppose we could do something about that...

That is because if you are starting bootstrap with an older compiler
that doesn't grok these, you get warnings during stage1, but those
should be ignored.  When you start bootstrapping with gcc 4.9
or in stage2 and later, they won't show up.

That said, we probably need to teach new version of gettext about those.

	Jakub



More information about the Libstdc++ mailing list