On 07/05/2016 12:47 PM, Jack Applegame wrote:
ttt.d
import std.string;

void main() {
    lastIndexOf("aa","bb");
}

rdmd ttt.d
compiles successfully without any errors or warnings


rdmd -dw ttt.d
compiles successfully without any errors or warnings

rdmd -de ttt.d
/usr/include/dmd/phobos/std/string.d(1239): Error: template
std.algorithm.searching.endsWith cannot deduce function from argument
types !((a, b) => std.uni.toLower(a) ==
std.uni.toLower(b))(const(char)[], const(char)[]), candidates are:
[...]

There sure is at least one bug. I guess this has to do with recent changes to symbol lookup/visibility rules.

On the line from the error message there are fully qualified references to std.uni.toLower, but std.uni isn't imported as a module. This can easily be fixed in phobos. I've filed an issue:
https://issues.dlang.org/show_bug.cgi?id=16238

Something is also going wrong in dmd. There should be a deprecation message.
  • Possible bug Jack Applegame via Digitalmars-d-learn
    • Re: Possible bug ag0aep6g via Digitalmars-d-learn

Reply via email to