← Back to index
|
Original Bugzilla link
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
https://github.com/D-Programming-Language/dmd/commit/ec78449561d5679d8c1281357f90a95be9bfe5ce
D1:
https://github.com/D-Programming-Language/dmd/commit/094f2678185e1dc450884e41f30cc0d519dd5ac8