Comment #0 by the.mail.of.mi2 — 2018-07-13T13:56:00Z
During dub release build I get the following errors:
/usr/include/dmd/phobos/std/range/package.d(8594,24): Error: function `std.range.Slides!(cast(Flag)false, MapResult!(__lambda5, immutable(ulong)[])).Slides.numberOfFullFrames` cannot inline function
/usr/include/dmd/phobos/std/range/package.d(8547,24): Error: function `std.range.Slides!(cast(Flag)false, MapResult!(__lambda5, immutable(ulong)[])).Slides.gap` cannot inline function
Unfortunately I cannot provide simpler example - simple sliding numeric array worked.
Comment #1 by greensunny12 — 2018-07-14T12:50:23Z
We would need a minimal reproducible example to help you :/
Comment #2 by the.mail.of.mi2 — 2018-07-16T08:15:59Z
OK, I managed to find a minimal example. The code below builds properly for debug build, but fails with the release build.
=================================
/+ dub.sdl: name "main" +/
import std.algorithm;
import std.range;
void main()
{
[1].map!(x => x).slide(2);
}
===========
Replacing .map!(x => x) with .map!"a" makes the code code work strangely.
Comment #3 by the.mail.of.mi2 — 2018-07-16T08:18:27Z
OK, I managed to find a minimal example. The code below builds properly for debug build, but fails with the release build.
==================================
/+ dub.sdl: name "main" +/
import std.algorithm;
import std.range;
void main()
{
[1].map!(x => x).slide(2);
}
==================================
Replacing .map!(x => x) with .map!"a" makes the code code work strangely.