[Issue 6885] New: [CTFE] wrong code with dynamically allocated 2D array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 3 01:32:44 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6885

           Summary: [CTFE] wrong code with dynamically allocated 2D array
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: clugdbug at yahoo.com.au


--- Comment #0 from Don <clugdbug at yahoo.com.au> 2011-11-03 01:32:13 PDT ---
int bug6885()
{
    auto array = new double[1][2];
    array[1][0] = 6;
    array[0][0] = 1;
    assert(array[1][0]==6);
    return 1;
}

static assert(bug6885());

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list