[Issue 431] New: Invalid case selected when switching on a long
Thomas Kuehne
thomas-dloop at kuehne.cn
Sat Oct 21 06:37:31 PDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at puremagic.com schrieb am 2006-10-12:
> http://d.puremagic.com/issues/show_bug.cgi?id=431
> void main() {
> long foo = 4;
> switch (foo) {
> case 2: assert (false); break;
> case 3: break;
> case 4: break;
> case 5: break;
> }
> }
>
> // Error: AssertError Failure switchbug.d(4)
Added to DStress as
http://dstress.kuehne.cn/run/c/case_04_A.d
http://dstress.kuehne.cn/run/c/case_04_B.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFFOibcLK5blCcjpWoRAs01AJwNXyOUfDvxNKqj+QnQg9NvlX8C/wCfS15L
aLZz9RGx0DM+hTq+eH+55uw=
=oRzi
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list