Bug 22459 – DWARF: delegate type names should be distinguishable
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-31T00:36:18Z
Last change time
2021-10-31T23:20:06Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0 by contact — 2021-10-31T00:36:18Z
Compiler should generate more distinguishable debug information about delegate types instead of generic `_Delegate` name.
Comment #1 by dlang-bot — 2021-10-31T16:07:28Z
@ljmf00 updated dlang/dmd pull request #13241 "backend: dwarfdbginf: use distinguishable type names for delegate types" fixing this issue:
- backend: dwarfdbginf: use distinguishable type names for delegate types
Fixes #22459.
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13241
Comment #2 by dlang-bot — 2021-10-31T23:20:06Z
dlang/dmd pull request #13241 "backend: dwarfdbginf: use distinguishable type names for delegate types" was merged into master:
- 20d6bdee4a5bae683d5c8cf96aab18a8978ccd87 by Luís Ferreira:
backend: dwarfdbginf: use distinguishable type names for delegate types
According to the specification, the memory layout for delegates have the
context pointer as `ptr` instead of `ctxptr` and this also matches the compiler
behaviour so debug info should also report correct member names.
Delegates are currently reported as `_Delegate` which is not distinguishable
among other delegate types with different return types and parameters, so name
these types with their qualified name is desirable.
Fixes #22459.
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13241