www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22079] New: importC: Error: '=', ';' or ',' expected taking

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

          Issue ID: 22079
           Summary: importC: Error: '=', ';' or ',' expected taking sizeof
                    compound literal
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Reduced test:
---
struct S { int field; };
void main()
{
  int var = sizeof (struct S) { 42 };
}

--
Jun 23