www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22352] New: DWARF array tags should not be ambiguous


          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 puremagic.com
          Reporter: lsferreira169 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.

Oct 03 2021