Bug 1094 – switch bug

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-05T03:29:00Z
Last change time
2014-02-16T15:23:42Z
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2007-04-05T03:29:35Z
Originaly reported by BCS <[email protected]> in news:[email protected] : # 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
Comment #1 by bugzilla — 2007-04-20T13:18:27Z
Fixed DMD 1.013