[Issue 14791] std.string.indexOf(char[], char) no longer compiles

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 12 17:26:34 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14791

--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Walter Bright from comment #1)
> This is caused by a recent change to DMD that regards buf[] as being
> equivalent to buf[64]. (Which causes both overloads of indexOf() to match.)

Martin and Walter, do you really test the snippet with git-head dmd? In my
local environment, git-head dmd does not reproduce the reported error.

And, if I use the modified dmd which is reverting issue 14735 fix, the errors
happen.

I doubt this is for 2.068-beta1 issue (and it's a dup of 14735), or your local
environment problem (that's not synchronized with current latest git-head
repo).

--


More information about the Digitalmars-d-bugs mailing list