www.digitalmars.com         C & C++   DMDScript  

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

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

          Issue ID: 22066
           Summary: importC: Error: expression expected, not ';' using
                    (postfix-expression)++
           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;
(i)++;
---

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

--
Jun 22 2021