www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19544] New: Can't call inputRangeObject on ranges not

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 puremagic.com
          Reporter: john.loughran.colvin 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)

--
Jan 03