April 05, 2007 [Issue 1094] New: switch bug | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1094 Summary: switch bug Product: D Version: 1.010 Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: thomas-dloop@kuehne.cn Originaly reported by BCS <ao@pathlink.com> in news:ce0a334389688c93c3bbfaa07d6@news.digitalmars.com : # void main(char[][] argv) # { # switch("#!") # { # case "#!": writef("----Found #!\n"); break; # case "\xFF\xFE"c: break; # default: writef("----Found ASCII\n"); break; # } # } # # On dmd 1.009 linux and win32 this prints "----Found ASCII". Drop the middle # case and it prints "----Found #!". Added to DStress as http://dstress.kuehne.cn/run/s/switch_24_A.d http://dstress.kuehne.cn/run/s/switch_24_B.d http://dstress.kuehne.cn/run/s/switch_24_C.d -- |
April 20, 2007 [Issue 1094] switch bug | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1094 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2007-04-20 13:18 ------- Fixed DMD 1.013 -- |
Copyright © 1999-2021 by the D Language Foundation