[Issue 15463] New: Compilation error when post-incrementing/decrementing a parenthized variable
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Dec 19 07:57:04 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15463
          Issue ID: 15463
           Summary: Compilation error when post-incrementing/decrementing
                    a parenthized variable
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: buknik95 at yandex.ru
```
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
--
    
    
More information about the Digitalmars-d-bugs
mailing list