[Issue 19544] New: Can't call inputRangeObject on ranges not supported by moveFront
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jan 3 14:16:48 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19544
Issue ID: 19544
Summary: Can't call inputRangeObject on ranges not supported by
moveFront
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: john.loughran.colvin at gmail.com
e.g. with regex RegexMatch!string you get the error
/usr/include/dlang/dmd/std/range/primitives.d(2023,9): Error: static assert:
"Cannot move front of a range with a postblit and an rvalue front."
/usr/include/dlang/dmd/std/range/interfaces.d(379,40): instantiated from
here: moveFront!(RegexMatch!string)
/usr/include/dlang/dmd/std/range/interfaces.d(488,1): instantiated from
here: InputRangeObject!(RegexMatch!string)
../../lang/source/kaleidic/sil/lang/types.d(308,64): instantiated from
here: inputRangeObject!(RegexMatch!string)
--
More information about the Digitalmars-d-bugs
mailing list