digitalmars.D.bugs - [Issue 411] New: array alloc with size from another array
- d-bugmail puremagic.com (20/20) Oct 08 2006 http://d.puremagic.com/issues/show_bug.cgi?id=411
- Thomas Kuehne (13/21) Oct 12 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (8/8) Oct 17 2006 http://d.puremagic.com/issues/show_bug.cgi?id=411
- d-bugmail puremagic.com (9/9) Oct 18 2006 http://d.puremagic.com/issues/show_bug.cgi?id=411
http://d.puremagic.com/issues/show_bug.cgi?id=411 Summary: array alloc with size from another array Product: D Version: 0.169 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: benoit tionex.de void main(){ int[] ia; ia ~= 3; byte[] data = new byte[ia[0]]; // line 5 byte[] data2 = new byte[ cast(int)(ia[s])]; // this compiles } a.d(5): need size of rightmost array, not type ia[0] --
Oct 08 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-10-09:http://d.puremagic.com/issues/show_bug.cgi?id=411void main(){ int[] ia; ia ~= 3; byte[] data = new byte[ia[0]]; // line 5 byte[] data2 = new byte[ cast(int)(ia[s])]; // this compiles } a.d(5): need size of rightmost array, not type ia[0]Added to DStress as http://dstress.kuehne.cn/run/a/array_initialization_28_A.d http://dstress.kuehne.cn/run/a/array_initialization_28_B.d http://dstress.kuehne.cn/run/a/array_initialization_28_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFLlhBLK5blCcjpWoRAlQ5AJsEkjPUjsAlKXKtndnBpGIMXFA48gCghARl lOPJDR/hCDGqqkfR9vHjpeI= =9PWe -----END PGP SIGNATURE-----
Oct 12 2006
http://d.puremagic.com/issues/show_bug.cgi?id=411 benoit tionex.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |godaves yahoo.com *** Bug 439 has been marked as a duplicate of this bug. *** --
Oct 17 2006
http://d.puremagic.com/issues/show_bug.cgi?id=411 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 0.170 --
Oct 18 2006