Bug 479 – can't compare arrayliteral statically with string

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

Comments

Comment #0 by lovesyao — 2006-11-04T00:48:18Z
don't work: static assert(['a','b','c','d']=="abcd");
Comment #1 by thomas-dloop — 2006-11-08T09:38:30Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-11-04: > http://d.puremagic.com/issues/show_bug.cgi?id=479 > don't work: > static assert(['a','b','c','d']=="abcd"); Added to DStress as http://dstress.kuehne.cn/compile/o/opEquals_06_A.d http://dstress.kuehne.cn/compile/o/opEquals_06_B.d http://dstress.kuehne.cn/compile/o/opEquals_06_C.d http://dstress.kuehne.cn/compile/o/opEquals_06_D.d http://dstress.kuehne.cn/compile/o/opEquals_06_E.d http://dstress.kuehne.cn/compile/o/opEquals_06_F.d http://dstress.kuehne.cn/compile/o/opEquals_06_G.d http://dstress.kuehne.cn/compile/o/opEquals_06_H.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFUfGULK5blCcjpWoRAh9gAJ4yT09Wh/H5O9xjAWmJi0AYOC6fzwCgrkRm Q0YNS4EAhRE5DUt9zoPGX7A= =g+6h -----END PGP SIGNATURE-----
Comment #2 by braddr — 2007-10-20T03:40:23Z
Fixed in 1.022/2.005