[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
Thomas Kuehne
thomas-dloop at kuehne.cn
Fri Sep 29 00:04:08 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-09-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=381
> void 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-----
More information about the Digitalmars-d-bugs
mailing list