[Issue 21405] ctRegex doesn't work in compile time

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 23 06:12:13 UTC 2020


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

--- Comment #1 from Nikolay Belov <nocomentsspb at gmail.com> ---
For dmd from master branch, the following error message I see:

../dlang/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(859):
Error: cannot cast __lambda3 to Captures!string delegate() pure @trusted at
compile time
../dlang/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(859):
       called from here: delegate () pure nothrow @nogc @trusted =>
cast(Captures!string delegate() pure @trusted)matchOnceImp()
../dlang/dmd/generated/linux/release/64/../../../../../phobos/std/regex/package.d(1005):
       called from here: matchOnce(input, re)
t.d(5):        called from here: matchFirst("test", ctr)
t.d(9):        called from here: test()

--


More information about the Digitalmars-d-bugs mailing list