www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21971] New: importC: Error: function conflicts with struct


          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
struct sigaction
  int sa_flags;

extern int sigaction(struct sigaction *);

May 25 2021