[Issue 729] New: scope(...) statement in SwitchBody causes compiler to segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 23 05:12:07 PST 2006


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

           Summary: scope(...) statement in SwitchBody causes compiler to
                    segfault
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


(Originally reported by <BCS at pathlink.com> on 2006-06-16
in news:e6umde$2ok0$2 at digitaldaemon.com)

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

GDC isn't affected by this.

test cases:
http://dstress.kuehne.cn/run/s/switch_22_A.d
http://dstress.kuehne.cn/run/s/switch_22_B.d
http://dstress.kuehne.cn/run/s/switch_22_C.d
http://dstress.kuehne.cn/run/s/switch_22_D.d
http://dstress.kuehne.cn/run/s/switch_22_E.d
http://dstress.kuehne.cn/run/s/switch_22_F.d
http://dstress.kuehne.cn/run/s/switch_22_G.d
http://dstress.kuehne.cn/run/s/switch_22_H.d
http://dstress.kuehne.cn/run/s/switch_22_I.d
http://dstress.kuehne.cn/run/s/switch_22_J.d


-- 



More information about the Digitalmars-d-bugs mailing list