www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22066] New: importC: Error: expression expected, not ';'


          Issue ID: 22066
           Summary: importC: Error: expression expected, not ';' using
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

A continuation of issue 21976.

Currently CParser returns true in isCastExpressionStart for the second
statement in:
int i = 0;

But then parsing fails when it attempts to parse '++' as a cast-expression.

Jun 22 2021