Bug 593 – can't deduce from arrayliteral

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2006-11-25T05:28:00Z
Last change time
2015-06-09T01:31:18Z
Assigned to
bugzilla
Creator
lovesyao

Comments

Comment #0 by lovesyao — 2006-11-25T05:28:01Z
void main(){ auto t=['a','b','c','d'];//error const t2=['a','b','c','d'];//crash }
Comment #1 by thomas-dloop — 2006-11-25T07:50:56Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] schrieb am 2006-11-25: > http://d.puremagic.com/issues/show_bug.cgi?id=593 > void main(){ > auto t=['a','b','c','d'];//error > const t2=['a','b','c','d'];//crash > } test cases: http://dstress.kuehne.cn/run/a/auto_18_C.d Added to DStress as: http://dstress.kuehne.cn/compile/c/const_41_A.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFaD//LK5blCcjpWoRAmuCAJ4hX8aP+2uDo8WFeqx2REcpveljpgCcCXJW /9sEfl+r/GqpfsXc0wbH9So= =M2Bx -----END PGP SIGNATURE-----
Comment #2 by bugzilla — 2006-12-08T02:57:18Z
Fixed DMD 0.176