http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263
--- Comment #36 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2010-11-26 00:15:05 UTC --- Awesome! I still think that the output would be better if it was more consistent with the current way of printing template instantiations, that is, using "note: while expanding macro..." after the error/warning. If you look to the code for printing the instantiations of templates, you'll see that it also handles long nested templates and recursive templates. Perhaps the same code/algorithm could be used for printing this to avoid such problems. In any case, you should seek comments from the decision-makers at gcc-patches@, not me, because whatever they want is what is going to be implemented.