RFA (diags): PATCH to allow %S in pp_verbatim in C++ front end

Jason Merrill jason@redhat.com
Tue Jun 7 20:54:00 GMT 2011


I want to add a %S format to the C++ front end for printing a 
template/args pair during template argument deduction substitution.  I 
want to print this during print_instantiation_partial_context, which 
uses pp_verbatim.  But for some reason the format attribute on 
pp_verbatim doesn't allow C++ front end formats even though they work 
fine, so this patch adjusts the format attribute to use GCC_DIAG_STYLE 
if it has already been set.

Tested x86_64-pc-linux-gnu.  OK for trunk?

I've also attached the front end patch that I want this change to support.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diag-s.patch
Type: text/x-patch
Size: 2128 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110607/77266196/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ded-tinst.patch
Type: text/x-patch
Size: 89217 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110607/77266196/attachment-0001.bin>


More information about the Gcc-patches mailing list