Summary: Array operations fail when compiled with -d flag
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Eldar Insafutdinov <> 2012-04-14 
06:17:55 PDT ---
The following snippet fails when compiled with -d flag.

void main()
    alias int* IntPtr;
    auto values = new IntPtr[3];
    for(int i = 0; i < values.length; ++i)
        values[i] = new int;
    auto copies = new IntPtr[values.length];
    copies[] = values;
    assert(values[1] == copies[1]);

As a result of the array operation the elements of "copies" are in fact equal
to each other.

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

Reply via email to