D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6885 - [CTFE] wrong code with dynamically allocated 2D array
Summary: [CTFE] wrong code with dynamically allocated 2D array
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-03 01:32 UTC by Don
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2011-11-03 01:32:13 UTC
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());