Summary: Array operation "slice times scalar" tramples over
           Product: D
           Version: 1.053
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Clemens <> 2010-01-07 13:16:38 PST ---
The following code fails with an assertion failure when it clearly shouldn't:


void main()
    float[64] array;
    int i = 42;

    auto slice = array[];
    slice[] *= 2f;

    assert(i == 42);


Array bounds checking doesn't catch this. I presume that the code in the
runtime to execute this array operation is buggy.

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

Reply via email to