This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45333] Include macros in instantiation backtraces
- From: "dodji at seketeli dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Oct 2011 08:57:06 +0000
- Subject: [Bug c++/45333] Include macros in instantiation backtraces
- Auto-submitted: auto-generated
- References: <bug-45333-4@http.gcc.gnu.org/bugzilla/>
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.