[Issue 431] Invalid case selected when switching on a long
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 16 02:41:44 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=431
------- Comment #1 from braddr at puremagic.com 2006-10-16 04:41 -------
I'm unable to reproduce this on linux with dmd recent versions of dmd
(166-169). That points to a windows specific bug. To confirm that case 4 was
being taken, I altered the test case to:
$ cat -n 431.d
1 void main() {
2 long foo = 4;
3 switch (foo) {
4 case 2: assert (false, "2"); break;
5 case 3: assert (false, "3"); break;
6 case 4: assert (false, "4"); break;
7 case 5: assert (false, "5"); break;
8 }
9 }
$ ./431
Error: AssertError Failure 431.d(6) 4
Before that alteration, it'd run without error.
--
More information about the Digitalmars-d-bugs
mailing list