www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - (T[] = T[] = T) => internal error

Using DMD 0.92, Windows 98SE.

This code:
----------
void main() {
	int[] qwert = new int[6];
	int[] yuiop = qwert[2..5] = 4;
}
----------

gives this error:
Internal error: ..\ztc\cgcod.c 1464

It seems peculiar to the T[] = T[] = scalar form.  The following all 
compile without error:
- array slice instead of scalar
- removing the first = and everything preceding it
- passing (qwert[2..5] = 4) as a function parameter

The same happens if I use char instead of int, or separate the 
declaration of yuiop from its assignment.

Stewart.

-- 
My e-mail is valid but not my primary mailbox, aside from its being the 
unfortunate victim of intensive mail-bombing at the moment.  Please keep 
replies on the 'group where everyone may benefit.
Jun 14 2004