[Issue 1041] New: regression: incorrect code generation for scope(exit) inside switch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 8 08:33:56 PST 2007


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

           Summary: regression: incorrect code generation for scope(exit)
                    inside switch
           Product: DGCC aka GDC
           Version: 0.23
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: thomas-dloop at kuehne.cn


# int main(){
#    int i = 2;
#
#    switch(3){
#       scope(exit) i--;
#
#       default:
#    }
#
#    if(i != 2){
#       assert(0);
#    }
#
#    return 0;
# }

gdmd-0.23 run/s/switch_22_B.d -ofx && ./x
Error: AssertError Failure run/s/switch_22_B.d(22)

test case:
http://dstress.kuehne.cn/run/s/switch_22_B.d


-- 



More information about the D.gnu mailing list