On 6/10/19 6:36 AM, Paolo Carlini wrote:
Hi,
this one requires my last patch, uses id_loc in a few additional places
in the last part of the function.
Most of the changes should be straightforward, I only want to mention
the "typedef name may not be a nested-name-specifier" change, where, not
using input_location means that for a test like
g++.old-deja/g++.jason/crash10.C:
struct A {
enum foo { bar };
};
typedef A::foo A::foo;
the location is under the 'A' of the second 'A::foo'. The EDG front-end
does exactly the same; clang points to the 'f' but then has the wavy
thing reaching back to 'A' (a while ago I already mentioned that we
don't have that option). Tested x86_64-linux.
OK.
Jason