[Issue 431] New: Invalid case selected when switching on a long

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 12 13:21:22 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=431

           Summary: Invalid case selected when switching on a long
           Product: D
           Version: 0.169
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: h3r3tic at mat.uni.torun.pl


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)


-- 




More information about the Digitalmars-d-bugs mailing list