Hi all, Jakub,
On 09/07/2013 01:16 PM, Jakub Jelinek wrote:
As I wrote in the PR, IMHO mangle_decl should
location_t save_location = input_location;
input_location = DECL_SOURCE_LOCATION (decl);
...
input_location = save_location;
around the call,
I had a look and I'm afraid this is already happening and isn't enough:
in mangle_decl_string, the call of write_mangled_name is wrapped in
exactly what you are suggesting. Or you mean something else?
Otherwise, I'm afraid we have to resort to what Jason too appears to
find acceptable, thus what Honza proposed about UNKNOWN_LOCATION + the
tweak to print_instantiation_partial_context_line (essentially just
return immediately if loc == UNKNOWN_LOCATION, I think)
Paolo.