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: [email protected]
Reporter: [email protected]
```
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
--