October 25, 2021
https://issues.dlang.org/show_bug.cgi?id=22437

          Issue ID: 22437
           Summary: compile unit of generated dwarf info are almost always
                    wrong
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: DebugInfo
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: b2.temp@gmx.com

for example generate the debug version of DMD and check it in dwex
(https://github.com/sevaa/dwex), you'll see the issue.
Most of the infos are not owned by the right root node.

--