May 07, 2023 [Issue 23902] New: ImportC error message location for #defines are not precise enough. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23902 Issue ID: 23902 Summary: ImportC error message location for #defines are not precise enough. Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: maxhaton@gmail.com `#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. -- |
Copyright © 1999-2021 by the D Language Foundation