Bug 2761 – Unreachable statement warning in std.string

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-03-25T06:05:00Z
Last change time
2015-06-09T05:15:08Z
Assigned to
bugzilla
Creator
aldacron

Comments

Comment #0 by aldacron — 2009-03-25T06:05:50Z
Given the following as unr.d: ==================== import std.string; void main() { string s1 = "foo"; string s2 = "Foo"; int ret = s1.icmp(s2); } ==================== compile with DMD 2.026 (which is not in the dropdown list to select for this issue) as: dmd -w -inline unr.d Result: warning - phobos\std\strting.d(202) Error: statement is not reachable Does not occur with 1.041 or 2.025. Tested only on Windows.
Comment #1 by bugzilla — 2009-04-01T13:57:58Z
Fixed DMD 2.027