Bug 21964 – importC: Error messages have the wrong column information

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-24T13:23:53Z
Last change time
2024-12-13T19:16:36Z
Keywords
diagnostic, ImportC
Assigned to
No Owner
Creator
Iain Buclaw
Moved to GitHub: dmd#19934 →

Comments

Comment #0 by ibuclaw — 2021-05-24T13:23:53Z
Errors in cparse.d don't pass a `loc` parameter to diagnostic routines, so typically messages end up being on the last column for a line, or on the wrong line entirely. e.g --- _Alignas(double) float alignas_var; --- emits the following error: --- test.c(2,1): Error: `_Alignas` not supported float alignas_var; ^
Comment #1 by nick — 2022-10-30T18:43:32Z
_Alignas is now supported. Are there any other errors with wrong loc?
Comment #2 by robert.schadek — 2024-12-13T19:16:36Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19934 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB