[Issue 24727] New: importc: macro conflicts with struct of same name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 28 08:55:16 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24727
Issue ID: 24727
Summary: importc: macro conflicts with struct of same name
Product: D
Version: D2
Hardware: x86_64
OS: All
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ryuukk.dev at gmail.com
```
struct mg_str {
};
void mg_str_s() {
}
#define mg_str(s) mg_str_s(s)
```
The following fail with DMD
```
#defines(119): Error: template `bug.mg_str(__MP21)(__MP21 s)` conflicts with
struct `bug.mg_str` at bug.c(1)
```
Perhaps this doesn't cover templates? https://github.com/dlang/dmd/pull/12567
--
More information about the Digitalmars-d-bugs
mailing list