Jason Merrill <ja...@redhat.com> writes: | On 06/14/2011 01:38 PM, Jason Merrill wrote: | > While I was at it, I've also tweaked the compiler to also print the | > typedef-stripped version of a type when appropriate, which should help | > with understanding template error messages. | | I noticed that this was sometimes printing an aka that was exactly the | same, which looks a bit goofy. So this patch makes sure that the | typedef-stripped version actually prints out differently before | appending the {aka}. | | Tested x86_64-pc-linux-gnu. Gaby: I'm not entirely comfortable | messing directly with the obstack here, but the pp interface doesn't | seem to support multiple strings at once. Does this approach make | sense to you, or do you have a better idea? |
Hi Jason, Please go ahead with your patch, and open a PR request for a better interface (assigned to me). The diagnostic machinery should support what you want to do without people having to deal directly with the lower-level storage management. Thanks! -- Gaby