Bug 22066 – importC: Error: expression expected, not ';' using (postfix-expression)++
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-06-22T13:05:31Z
Last change time
2021-06-25T12:25:14Z
Keywords
ImportC, pull, rejects-valid
Assigned to
No Owner
Creator
Iain Buclaw
Comments
Comment #0 by ibuclaw — 2021-06-22T13:05:31Z
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.
Comment #1 by dlang-bot — 2021-06-24T18:22:36Z
@ibuclaw created dlang/dmd pull request #12749 "fix Issue 22066 - importC: Error: expression expected, not ';' using (postfix-expression)++" fixing this issue:
- fix Issue 22066 - importC: Error: expression expected, not ';' using (postfix-expression)++
https://github.com/dlang/dmd/pull/12749
Comment #2 by dlang-bot — 2021-06-25T12:25:14Z
dlang/dmd pull request #12749 "fix Issue 22066 - importC: Error: expression expected, not ';' using (postfix-expression)++" was merged into master:
- 7516564dc7089318549d490c642405249eb391ea by Iain Buclaw:
fix Issue 22066 - importC: Error: expression expected, not ';' using (postfix-expression)++
https://github.com/dlang/dmd/pull/12749