www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16238] New: std.string.lastIndexOf fails compilation with -de


          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 puremagic.com
          Reporter: ag0aep6g 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() {

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.

Jul 05 2016