[Bug c++/53132] Missing top level in diagnostic's instantiation stack

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 21 19:31:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53132

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-21 18:45:40 UTC ---
(In reply to comment #1)
> Manuel, any idea what is going on here?

Not much. The instantiation context starts from the input_location, and that is
pointing to ../include/c++/4.7.1/type_traits:1252:2. I am not sure that the C++
FE records the information that this started from some user code. Perhaps Jason
knows where this information is stored. 

I tried to figure out at what point input_location is changed from test.cc line
12 to something in type_traits, but it is a mess... I would be very afraid to
just experiment here by changing input_location, since there are likely a lot
of hidden tricks and pitfalls... :-(



More information about the Gcc-bugs mailing list