February 28 [Issue 24419] New: ImportC: Macros inside a typedef enum not seen | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24419 Issue ID: 24419 Summary: ImportC: Macros inside a typedef enum not seen Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: atila.neves@gmail.com ------ // 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`? -- |
Copyright © 1999-2021 by the D Language Foundation