http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45333
--- Comment #4 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-10-20 08:57:06 UTC --- > So we can track the origin of the instantation to the macro definition, but > then we don't show where the macro is invoked from, which is shown without > -ftrack-macro-expansion. I think it should show both, like clang does Agreed. > Notice that in my ideal output, I also fixed the location given for the first > instantation to point to "set" (1:19) and not to the end of the line > (1:24). Agreed again. I suspect this is related to our (ab)use of the global input_location instead of relying on the precise location of the tokens we are dealing with. So I guess it'll take some iterations to generally get this right, as you know already.