Bug 7987 – [CTFE] cannot compare arrays of slices

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-26T01:15:00Z
Last change time
2015-06-09T05:11:57Z
Keywords
CTFE, rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2012-04-26T01:15:11Z
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
Comment #1 by clugdbug — 2012-04-30T15:24:39Z