www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Internal error: ..\ztc\cod1.c 2503 - slice-assigning to a bit[n][]

reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Using DMD 0.125, Windows 98SE.

----------
void main() {
	bit[9][3] qwert;

	qwert[1..3] = qwert[0];
}
----------
Internal error: ..\ztc\cod1.c 2503
----------

This seems to happen only if assigning a single element to a slice.  It 
also happens if outer array dimension is dynamic, but not if the inner 
one is.  Doesn't seem to happen with arrays of the other types.

Stewart.

-- 
My e-mail is valid but not my primary mailbox.  Please keep replies on 
the 'group where everyone may benefit.
May 31 2005
parent Thomas Kuehne <thomas-dloop kuehne.this-is-spam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stewart Gordon schrieb am Tue, 31 May 2005 11:48:47 +0100:
 Using DMD 0.125, Windows 98SE.

 ----------
 void main() {
 	bit[9][3] qwert;

 	qwert[1..3] = qwert[0];
 }
 ----------
 Internal error: ..\ztc\cod1.c 2503
 ----------

 This seems to happen only if assigning a single element to a slice.  It 
 also happens if outer array dimension is dynamic, but not if the inner 
 one is.  Doesn't seem to happen with arrays of the other types.

 Stewart.
Added to DStress as http://dstress.kuehne.cn/run/o/opSlice_01_A.d ... http://dstress.kuehne.cn/run/o/opSlice_01_U.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCo/4e3w+/yD4P9tIRApnGAKCzi7CC8G7k0hbMy34iY61GGaIW1wCdFL2s YpafGJAQvvZupoT1hY1tkOc= =USH2 -----END PGP SIGNATURE-----
Jun 06 2005