[Issue 16238] New: std.string.lastIndexOf fails compilation with -de
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jul 5 06:48:00 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16238
Issue ID: 16238
Summary: std.string.lastIndexOf fails compilation with -de
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: ag0aep6g at gmail.com
Found by Jack Applegame who posted to D.Learn:
http://forum.dlang.org/post/zipoulbugjhqctiayjwn@forum.dlang.org
----
import std.string;
void main() {
lastIndexOf("aa","bb");
}
----
Compiles without deprecation message. Fails compilation when dmd flag -de
(deprecations as errors) is used.
This issue is about the phobos bug (relying on a deprecated feature). The
absence of a deprecation message seems to be a dmd bug. Will have to eliminate
phobos from the test case for an actionable dmd bug report.
--
More information about the Digitalmars-d-bugs
mailing list