[Issue 214] New: seg-v from scope() in switch
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jun 20 09:56:56 PDT 2006
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=214
           Summary: seg-v from scope() in switch
           Product: D
           Version: 0.161
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: shro8822 at uidaho.edu
Unreachable scope statement in switch statement causes seg-v.
void main()
{
    switch(1)
    {
//        case 0:    // compiles with this line
            scope(exit) *cast(int*)null = 0;
        default:
    }
}
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list