Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 25, 2006 [Issue 595] New: can't append to array/arrayliteral statically | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=595 Summary: can't append to array/arrayliteral statically Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: lovesyao@hotmail.com void main(){ const char[] test = "" ~ 'a' ~ 'b' ~ 'c';//ok char[] test2 = (cast(char[])null)~'a'~'b'~'c';//ok const char[] test3 = (cast(char[])null)~'a'~'b'~'c';//failed char[] test4 = (cast(char[])[])~'a'~'b'~'c';//ok const char[] test5 = (cast(char[])[])~'a'~'b'~'c';//failed const char[] test6 = null; const char[] test7 = test6~'a'~'b'~'c';//failed } -- |
November 25, 2006 Re: [Issue 595] New: can't append to array/arrayliteral statically | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-11-25: > http://d.puremagic.com/issues/show_bug.cgi?id=595 > void main(){ > const char[] test = "" ~ 'a' ~ 'b' ~ 'c';//ok > char[] test2 = (cast(char[])null)~'a'~'b'~'c';//ok > const char[] test3 = (cast(char[])null)~'a'~'b'~'c';//failed > char[] test4 = (cast(char[])[])~'a'~'b'~'c';//ok > const char[] test5 = (cast(char[])[])~'a'~'b'~'c';//failed > const char[] test6 = null; > const char[] test7 = test6~'a'~'b'~'c';//failed > } Added to DStress as http://dstress.kuehne.cn/compile/o/opCat_25_A.d http://dstress.kuehne.cn/compile/o/opCat_25_B.d (the other cases are covered by issue 353) Thomas |
November 29, 2006 [Issue 595] can't append to array/arrayliteral statically | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=595 thomas-dloop@kuehne.cn changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #2 from thomas-dloop@kuehne.cn 2006-11-29 15:31 ------- *** Bug 608 has been marked as a duplicate of this bug. *** -- |
April 20, 2007 [Issue 595] can't append to array/arrayliteral statically | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=595 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from bugzilla@digitalmars.com 2007-04-20 13:17 ------- Fixed DMD 1.013 -- |
Copyright © 1999-2021 by the D Language Foundation