1094 – switch bug

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1094 - switch bug
Summary: switch bug
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P3 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2007年04月05日 03:29 UTC by Thomas Kühne
Modified: 2014年02月16日 15:23 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2007年04月05日 03:29:35 UTC
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 
Comment 1 Walter Bright 2007年04月20日 13:18:27 UTC
Fixed DMD 1.013


AltStyle によって変換されたページ (->オリジナル) /