Bug 8644 – CTFE doesn't support string >,< on array literals

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

Comments

Comment #0 by clugdbug — 2012-09-12T00:39:01Z
int bug() { auto m = "a"; auto z = ['b']; assert(m < z); // Error, not supported at compile time return 1; } static assert( bug());
Comment #1 by clugdbug — 2012-09-12T01:26:14Z
Comment #2 by yebblies — 2012-10-09T08:35:38Z
Comment #3 by github-bugzilla — 2012-10-09T09:12:57Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8cd8f05dfe1caa050c2995b410d7e73b696cb6ad Fix bug 8644 - CTFE doesn't support string <,> on array literals https://github.com/D-Programming-Language/dmd/commit/f3ee71f1f422fd0ee8863109469f4065a8305b5f Merge pull request #1114 from donc/ctfe8644_arrayliteralcmp Fix bug 8644 - CTFE doesn't support string <,> on array literals
Comment #4 by yebblies — 2012-10-09T09:15:10Z