www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 214] New: seg-v from scope() in switch

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: shro8822 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:
    }
}


-- 
Jun 20 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=214


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE







*** This bug has been marked as a duplicate of 729 ***


-- 
Jan 23 2007