# import std.stdio; # # void main(){ # int i = 3; # while(i--){ # scope(exit) writefln("scope(exit)"); # writefln("i: %s", i); # if(i % 2) continue; # } # # writefln("---"); # # i = 3; # while(i--){ # scope(success) writefln("scope(success)"); # writefln("i: %s", i); # if(i % 2) continue; # } # # } output: > i: 2 > scope(exit) > i: 1 > i: 0 > scope(exit) > --- > i: 2 > scope(success) > i: 1 > scope(success) > i: 0 > scope(success) expected output: > i: 2 > scope(exit) > i: 1 > scope(exit) > i: 0 > scope(exit) > --- > i: 2 > scope(success) > i: 1 > scope(success) > i: 0 > scope(success)
Only exhibits error on dmd for Linux, not for Windows.
Seems to fundamentally be the same issue as #621
Fixed DMD 1.001
Added to DStress as http://dstress.kuehne.cn/run/s/scope_18_A.d http://dstress.kuehne.cn/run/s/scope_18_B.d http://dstress.kuehne.cn/run/s/scope_18_C.d Seems to be fixed since DMD-1.001
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル