[Issue 6067] New: switch case fall through crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 28 04:41:00 PDT 2011


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

           Summary: switch case fall through crash
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: r.k.persson at gmail.com


--- Comment #0 from Robert Persson <r.k.persson at gmail.com> 2011-05-28 04:36:41 PDT ---
The following code crashes when run on dmd 2.053. windbg.exe stays on line
"nop3" when debugged and then the program crashes.


int main(string[] argv)
{

    string a="test";
    string b="dummy";

    switch(b) {
        case "nop1": a="apples";
        case "nop2": a="oranges";
        case "nop3": a="bananas";
    }

   return 0;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list