[Issue 1704] New: std.string doesn't compile with warnings enabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 30 17:05:21 PST 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1704

           Summary: std.string doesn't compile with warnings enabled
           Product: D
           Version: 2.008
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: torhu at yahoo.com


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


-- 



More information about the Digitalmars-d-bugs mailing list