digitalmars.D.bugs - [Issue 21971] New: importC: Error: function conflicts with struct
- d-bugmail puremagic.com (24/24) May 25 2021 https://issues.dlang.org/show_bug.cgi?id=21971
https://issues.dlang.org/show_bug.cgi?id=21971 Issue ID: 21971 Summary: importC: Error: function conflicts with struct Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: ibuclaw gdcproject.org D doesn't allow this, but C has two different namespaces for function/variable/typedef symbol names and tags for struct/union/enum. This blocks quite a number of the standard library functions from being compilable. --- struct sigaction { int sa_flags; }; extern int sigaction(struct sigaction *); --
May 25 2021