[Issue 1094] New: switch bug
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 5 01:29:36 PDT 2007
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 at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
Originaly reported by BCS <ao at pathlink.com> in
news:ce0a334389688c93c3bbfaa07d6 at 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
--
More information about the Digitalmars-d-bugs
mailing list