Bug 16238 – std.string.lastIndexOf fails compilation with -de
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-07-05T13:48:00Z
Last change time
2016-10-01T11:46:07Z
Keywords
pull
Assigned to
ag0aep6g
Creator
ag0aep6g
Comments
Comment #0 by ag0aep6g — 2016-07-05T13:48:00Z
Found by Jack Applegame who posted to D.Learn:
http://forum.dlang.org/post/[email protected]
----
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.
(In reply to ag0aep6g from comment #0)
> 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.
Filed separately: issue 16239.
Comment #3 by github-bugzilla — 2016-07-05T16:01:10Z