www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Assertion failure: 'se2->op == TOKstring' on line 1379 in file 'expression.c'

reply Rev <Rev_member pathlink.com> writes:
Using WinXPSP2 ~ DMD v0.113, v0.112

private import std.string;
void main()
{
char[] hold;
switch((hold = toString('i'))) {
case "":
case toString(cast(char)255):
hold = toString('i'); break;
}
}

Rev
Feb 13 2005
parent =?ISO-8859-1?Q?Thomas_K=FChne?= <thomas-dloop kuehne.THISISSPAM.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rev wrote:
| Using WinXPSP2 ~ DMD v0.113, v0.112
|
| private import std.string;
| void main()
| {
| char[] hold;
| switch((hold = toString('i'))) {
| case "":
| case toString(cast(char)255):
| hold = toString('i'); break;
| }
| }

Added to DStress as
http://dstress.kuehne.cn/nocompile/case_01.d
http://dstress.kuehne.cn/nocompile/case_02.d

Thomas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCD8PI3w+/yD4P9tIRAjfeAKCDKvZBbC0lQZEYoO/wFJuSPyg8LACeJW5S
DG0GNgazeLEQO5ICdPtV+uA=
=HrXH
-----END PGP SIGNATURE-----
Feb 13 2005