https://issues.dlang.org/show_bug.cgi?id=17601
--- Comment #6 from Martin Nowak <c...@dawg.eu> --- Happens because a function ends up in the glue layer in PASSsemantic2 state (std.range.SortedRange!(string[], "a < b").SortedRange.__xopEquals). It's a side-effect of bluntly trying to run semantic3 on all imported modules (https://github.com/dlang/dmd/pull/6748). Seems like the deferred STCinference mechanism added in https://github.com/dlang/dmd/pull/5075 isn't run for the compiler generated __x* methods. --