www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22404] New: importC: Error: cannot pass argument 'ENUMMEM' of

https://issues.dlang.org/show_bug.cgi?id=22404

          Issue ID: 22404
           Summary: importC: Error: cannot pass argument 'ENUMMEM' of type
                    'int' to parameter '__tag2'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

---
typedef enum {
    ENUMMEM
} E1;

int f1(E1 a);

void f2()
{
    f1(ENUMMEM);
}

--
Oct 17 2021