Bug 478 – can't compare arrayliteral statically with variable

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2006-11-04T00:44:00Z
Last change time
2015-06-09T05:15:16Z
Assigned to
bugzilla
Creator
lovesyao

Comments

Comment #0 by lovesyao — 2006-11-04T00:44:39Z
don't work: const char[] test=['a','b','c','d']; static assert(test==['a','b','c','d']); work: static assert(['a','b','c','d']==['a','b','c','d']);
Comment #1 by bugzilla — 2006-11-25T04:02:16Z
Fixed DMD 0.175