Bug 24419 – ImportC: Macros inside a typedef enum not seen

Status
NEW
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-02-28T08:38:24Z
Last change time
2024-12-13T19:33:36Z
Keywords
ImportC
Assigned to
No Owner
Creator
Atila Neves
Moved to GitHub: dmd#20410 →

Comments

Comment #0 by atila.neves — 2024-02-28T08:38:24Z
------ // quux.c typedef enum { #define R0 _RAX _RAX, } reg; // mod.d import quux; const _ = _RAX; // fine const r0 = R0; // oops ------ source/mod.d(3): Error: undefined identifier `R0`, did you mean variable `r0`?
Comment #1 by robert.schadek — 2024-12-13T19:33:36Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20410 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB