Bug 23902 – ImportC error message location for #defines are not precise enough.

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2023-05-07T21:56:34Z
Last change time
2024-12-13T19:28:42Z
Keywords
ImportC
Assigned to
No Owner
Creator
mhh
Moved to GitHub: dmd#20273 →

Comments

Comment #0 by maxhaton — 2023-05-07T21:56:34Z
`#defines(num)` may be given as a location. This is confusing and also extremely unhelpful when anything goes wrong. The solution is simple: Pack a flag into the Loc struct dmd uses, then store the contextual information about the #define properly.
Comment #1 by robert.schadek — 2024-12-13T19:28:42Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20273 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB