[Issue 24419] New: ImportC: Macros inside a typedef enum not seen
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 28 08:38:24 UTC 2024
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 at puremagic.com
Reporter: atila.neves at 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`?
--
More information about the Digitalmars-d-bugs
mailing list