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.
Comment #1 by ag0aep6g — 2016-07-05T13:51:40Z
Comment #2 by ag0aep6g — 2016-07-05T15:10:30Z
(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
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d9a2d285148bede51f718520885013b2615622c5 fix issue 16238 - std.string.lastIndexOf fails compilation with -de https://github.com/dlang/phobos/commit/e41b83f0a37fa88402e92df3ceee73fecb57a1c4 Merge pull request #4566 from aG0aep6G/16238 fix issue 16238 - std.string.lastIndexOf fails compilation with -de
Comment #4 by github-bugzilla — 2016-10-01T11:46:07Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/d9a2d285148bede51f718520885013b2615622c5 fix issue 16238 - std.string.lastIndexOf fails compilation with -de https://github.com/dlang/phobos/commit/e41b83f0a37fa88402e92df3ceee73fecb57a1c4 Merge pull request #4566 from aG0aep6G/16238