Bug 20839 – [dwarf] inherited fields not shwon

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-05-18T14:24:17Z
Last change time
2020-06-06T16:23:48Z
Assigned to
No Owner
Creator
uplink.coder

Comments

Comment #0 by uplink.coder — 2020-05-18T14:24:17Z
Comment #1 by uplink.coder — 2020-05-18T14:28:09Z
In the following example: class Base { int x = 12; } class Child : Base { int y = 34; } void main() { Base b = new Base(); Child c = new Child(); int break_here = 1; } the child class `Child` does not have a member `x` according to debuginfo This is because a `DW_TAG_inheritance` is missing.
Comment #2 by pro.mathias.lang — 2020-05-18T15:01:55Z
Reported this a few years ago too. The best solution for me ended up using LDC tho ;) *** This issue has been marked as a duplicate of issue 15631 ***
Comment #3 by uplink.coder — 2020-06-06T13:47:43Z
*** Issue 15631 has been marked as a duplicate of this issue. ***
Comment #4 by pro.mathias.lang — 2020-06-06T16:23:48Z
Re-marking as duplicate. I explained in the other issue the rationale for this (mainly, having an OP with an actual test case). *** This issue has been marked as a duplicate of issue 15631 ***