Bug 24727 – importc: macro conflicts with struct of same name

Status
NEW
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2024-08-28T08:55:16Z
Last change time
2024-12-13T19:37:04Z
Keywords
ImportC
Assigned to
No Owner
Creator
ryuukk_
Moved to GitHub: dmd#20502 →

Comments

Comment #0 by ryuukk.dev — 2024-08-28T08:55:16Z
``` 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
Comment #1 by robert.schadek — 2024-12-13T19:37:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20502 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB