www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22245] New: importC: Error: found `.` when expecting `)`

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

          Issue ID: 22245
           Summary: importC: Error: found `.` when expecting `)`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

This occurs when using `sizeof unary-expression`,

struct A { int a; };

int test()
{
    struct A a;
    return sizeof(a.a);
}

--
Aug 27