Summary: [CTFE] Array index out of bound detection is
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-05-31 01:59:48 PDT ---
Test case:

static assert({
    int[] x = [1,2,3,4];
    x[4] = 1;
    return true;

In 2.052 this is correctly rejected, but in 2.053 this is wrongly accepted.
Changing the [4] to [5] will make the code fail to compile. There should be
some off-by-one error introduced between the two versions.

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

Reply via email to