Bug 22467 – DWARF: wchar_t reports wrong DECL attributes

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-11-01T18:47:11Z
Last change time
2021-11-05T07:10:15Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira

Comments

Comment #0 by contact — 2021-11-01T18:47:11Z
wchar_t currently reports DECL coordinates for the first line of the first file, which is wrong.
Comment #1 by dlang-bot — 2021-11-01T19:11:30Z
@ljmf00 updated dlang/dmd pull request #13247 "backend: dwarfdbginf: Remove artificial attributes on wchar_t typedef" fixing this issue: - backend: dwarfdbginf: Remove artificial attributes on wchar_t typedef According to DWARF, declaration coordinates are not mandatory and wchar_t is currently an artificial typedef. We should not generate DECL attributes for such artificial TAGs. Fixes #22467 . Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13247
Comment #2 by dlang-bot — 2021-11-05T07:10:15Z
dlang/dmd pull request #13247 "backend: dwarfdbginf: Remove artificial attributes on wchar_t typedef" was merged into master: - 9295f90dcb04fd00c7b50cc3b50837f1259990ad by Luís Ferreira: backend: dwarfdbginf: Remove artificial attributes on wchar_t typedef According to DWARF, declaration coordinates are not mandatory and wchar_t is currently an artificial typedef. We should not generate DECL attributes for such artificial TAGs. Fixes #22467 . Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13247