Summary: Fake changes to enum array of array
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-10-08 19:17:03 PDT ---
Maybe this was reported already, because it looks like a basic bug.

This compiles and runs with no errors (DMD 2.056head):

void main() {
    enum int[][] array = [[0, 1], [2, 3]];
    foreach (r; array)
        r[0] *= 10;
    foreach (ref r; array)
        r[0] *= 10;
    assert(array == [[0, 1], [2, 3]]);

This is a big hole. I think the implementation of compile-time constants need a
lot of debugging.

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

Reply via email to