7987 – [CTFE] cannot compare arrays of slices

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7987 - [CTFE] cannot compare arrays of slices
Summary: [CTFE] cannot compare arrays of slices
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: CTFE, rejects-valid
Depends on:
Blocks:
Reported: 2012年04月26日 01:15 UTC by Don
Modified: 2015年06月09日 05:11 UTC (History)
0 users

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 2012年04月26日 01:15:11 UTC
bool bug7987() {
 int [7] a;
 int[][2] b = a[0..5];
 assert(b == b);
 return true;
}
static assert(bug7987());
bug.d(38): Error: b == b cannot be interpreted at compile time


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