D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15463 - Compilation error when post-incrementing/decrementing a parenthized variable
Summary: Compilation error when post-incrementing/decrementing a parenthized variable
Status: RESOLVED DUPLICATE of issue 7184
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-19 15:57 UTC by Nickolay Bukreyev
Modified: 2022-10-24 13:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nickolay Bukreyev 2015-12-19 15:57:04 UTC
```
unittest {
    int a = 1;
    (a)--;
}
```

```
test.d(3): Error: expression expected, not ';'
test.d(4): Error: C style cast illegal, use cast(a)--0
test.d(4): Error: found '}' when expecting ';' following statement
test.d(5): Error: found 'EOF' when expecting '}' following compound statement
```

v2.069.2
Comment 1 RazvanN 2022-10-24 13:30:29 UTC

*** This issue has been marked as a duplicate of issue 7184 ***