digitalmars.D.bugs - [Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
- d-bugmail puremagic.com (25/25) Sep 27 2006 http://d.puremagic.com/issues/show_bug.cgi?id=381
- Thomas Kuehne (16/27) Sep 29 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (9/9) Oct 10 2006 http://d.puremagic.com/issues/show_bug.cgi?id=381
http://d.puremagic.com/issues/show_bug.cgi?id=381 Summary: array literals are broken; Internal error: ..\ztc\cod1.c 2525 Product: D Version: 0.167 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-valid-code, wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: h3r3tic mat.uni.torun.pl void foo(...) { } void main() { int[] arr; arr = [1] ~ 2; // runtime crash, the length == 1 assert (arr.length == 2); // compile-time crash foo([1] ~ 2); } --
Sep 27 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-09-27:http://d.puremagic.com/issues/show_bug.cgi?id=381void foo(...) { } void main() { int[] arr; arr = [1] ~ 2; // runtime crash, the length == 1 assert (arr.length == 2); // compile-time crash foo([1] ~ 2); }An additional message triggered on Linux is: Internal error: ../ztc/cgcod.c 1504 Added to DStress as http://dstress.kuehne.cn/run/o/opCat_24_A.d http://dstress.kuehne.cn/run/o/opCat_24_B.d http://dstress.kuehne.cn/run/o/opCat_24_C.d http://dstress.kuehne.cn/run/o/opCat_24_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFHDBMLK5blCcjpWoRAveEAJ9u12E9nm+oEH634kXDNLhlcFjpuwCfe26/ plId/SYmuhSqyKLywo7L7LM= =USzF -----END PGP SIGNATURE-----
Sep 29 2006
http://d.puremagic.com/issues/show_bug.cgi?id=381 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 0.169 --
Oct 10 2006