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

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 *);

--

Reply via email to