www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21992] New: importC: Error: variable is used as a type

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

          Issue ID: 21992
           Summary: importC: Error: variable is used as a type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

The parser is unable to handle ambiguity well for cast expressions.
---
int test()
{
  int i = 1;
  int j = (i) * 2;
}

--
Jun 04