www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


(Originally reported by <BCS pathlink.com> on 2006-06-16
in news:e6umde$2ok0$2 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


-- 
Dec 23 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=729


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 uidaho.edu




------- Comment #1 from thomas-dloop kuehne.cn  2007-01-23 06:05 -------
*** Bug 214 has been marked as a duplicate of this bug. ***


-- 
Jan 23 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=729


thomas-dloop kuehne.cn changed:

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




------- Comment #2 from thomas-dloop kuehne.cn  2007-01-23 06:06 -------
Fixed in DMD-1.00


-- 
Jan 23 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=729


thomas-dloop kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #3 from thomas-dloop kuehne.cn  2007-01-23 06:09 -------
Sorry, didn't realise that this was a DMD-only issue and confused GDC-0.21 with 
DMD-1.00.


-- 
Jan 23 2007
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=729


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #4 from bugzilla digitalmars.com  2007-11-03 21:44 -------
Fixed dmd 1.023 and 2.007


-- 
Nov 03 2007