[Issue 22352] New: DWARF array tags should not be ambiguous

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 3 16:32:30 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22352

          Issue ID: 22352
           Summary: DWARF array tags should not be ambiguous
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: lsferreira169 at gmail.com

Currently the compiler generates "_Array_struct" for array of structs and
"_Array_<primitive_type>" for primitive types. This is ambiguous to represent
symbols and debuggers should output this correctly when getting the pretty name

DW_AT_type      (0x000002ed "_Array_struct")

Instead, something like the following should happen:

DW_AT_type      (0x000002e7 "app.A_A[]")

This will also improve consistency between compiler implementations.

--


More information about the Digitalmars-d-bugs mailing list