[Issue 13237] Wrong code with "-inline -O"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 5 16:39:27 PDT 2014


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

--- Comment #1 from sinkuu at aol.jp ---
Sorry, I forgot to write that this code is reduced from an overload of
std.algorithm.find.
https://github.com/D-Programming-Language/phobos/blob/master/std/algorithm.d#L4586


The first problem I found was

    enforce(find("{", "{") == "{");

this fails when it's compiled with -O and -inline.

--


More information about the Digitalmars-d-bugs mailing list