Bug 11587 – Cannot compare AAs at compile time

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-23T21:29:00Z
Last change time
2015-06-09T05:11:41Z
Keywords
CTFE, pull, rejects-valid
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2013-11-23T21:29:26Z
static assert([1:2, 3:4] == [3:4, 1:2]); testx.d(2): Error: cannot compare [1:2, 3:4] at compile time testx.d(2): while evaluating: static assert([1:2, 3:4] == [3:4, 1:2])
Comment #1 by yebblies — 2013-11-23T21:33:17Z
Comment #2 by github-bugzilla — 2013-11-25T07:27:39Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/33c4e8d59d62e7abd09c808672104de9b242327f Fix Issue 11587 - Cannot compare AAs at compile time https://github.com/D-Programming-Language/dmd/commit/5c38c59876b4adfbe26d2ec421a8376d1bba6f0b Merge pull request #2869 from yebblies/issue11587 Issue 11587 - Cannot compare AAs at compile time
Comment #3 by dransic — 2015-03-24T14:34:26Z
Is this error related to this (supposedly fixed) bug? static assert([1: 1] != [1: 2, 2: 1]); // OK static assert([1: 1] != [1: 2]); // OK static assert([1: 1] != [2: 1]); // Error! DMD 2.067-rc1
Comment #4 by k.hara.pg — 2015-03-24T15:27:36Z
(In reply to Nicolas Sicard from comment #3) > Is this error related to this (supposedly fixed) bug? > > static assert([1: 1] != [1: 2, 2: 1]); // OK > static assert([1: 1] != [1: 2]); // OK > static assert([1: 1] != [2: 1]); // Error! > > DMD 2.067-rc1 It's a bug in the pull 2869 implementation. New issue for that: https://issues.dlang.org/show_bug.cgi?id=14325