https://sourceware.org/bugzilla/show_bug.cgi?id=33955

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Note that it's tempting to check whether a DIE is a descendant of
the enclosing structure type.  However in Ada we found a scenario
where the discriminant has to come from a superclass and so
the DW_AT_discr will reference a DIE elsewhere.  (At least, this
is how GCC is going to implement this; for LLVM we're instead
emitting an artificial DIE that is a duplicate of the field in
question.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to