← Back to index
|
Original Bugzilla link
Bug 1704 – std.string doesn't compile with warnings enabled
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-11-30T19:05:00Z
Last change time
2015-06-09T01:14:23Z
Assigned to
bugzilla
Creator
torhu
Comments
Comment #0
by torhu — 2007-11-30T19:05:20Z
Test case: --- import std.string; void main() { "abc".startsWith("a"); } --- c:\prog\test\D>dmd -w dmd2008 warning - c:\prog\dmd\bin\..\src\phobos\std\string.d(1600): Error: statement is not reachable c:\prog\dmd\bin\..\src\phobos\std\string.d(5): template instance std.string.star tsWith!(invariant(char)[3u],invariant(char)[1u]) error instantiating
Comment #1
by torhu — 2007-12-03T17:11:51Z
std.random also doesn't compile with -w.
Comment #2
by torhu — 2008-01-21T23:31:41Z
*** Bug 1795 has been marked as a duplicate of this bug. ***
Comment #3
by bugzilla — 2008-03-08T01:24:35Z
Works with DMD 2.012