June 14, 2004 (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.
|
Copyright © 1999-2021 by the D Language Foundation