5972 – CTFE: Can't assign to elements of arrays of slices

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5972 - CTFE: Can't assign to elements of arrays of slices
Summary: CTFE: Can't assign to elements of arrays of slices
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年05月09日 21:16 UTC by Don
Modified: 2015年06月09日 05:10 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2011年05月09日 21:16:26 UTC
int foo()
{
 char [] z = "abc".dup;
 char[] [] a = [null, null];
 a[0] = z[0..2];
 a[0][2] = 'q';
 return 56;
}
static assert(foo()==56);
This doesn't compile, previously it compiled but generated wrong code.


AltStyle によって変換されたページ (->オリジナル) /