Summary: parse error on *(x)++
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-12-29 16:27:58 PST ---
void main(){
    int[2] y;
    int *x = y.ptr;

Error: expression expected, not '='
Error: C style cast illegal, use cast(x)++0
Error: found '0' when expecting ';' following statement

The code should compile.

Workaround if parentheses are a result of code generation:

void main(){
    int[2] y;
    int *x = y.ptr;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to