[Issue 21971] New: importC: Error: function conflicts with struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 25 16:37:43 UTC 2021


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 at puremagic.com
          Reporter: ibuclaw at 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 *);

--


More information about the Digitalmars-d-bugs mailing list