Thread overview
[Issue 21405] ctRegex doesn't work in compile time
Nov 19, 2020
Nikolay Belov
Nov 23, 2020
Nikolay Belov
Aug 22, 2021
Paul Backus
November 19, 2020
https://issues.dlang.org/show_bug.cgi?id=21405

Nikolay Belov <nocomentsspb@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nocomentsspb@gmail.com

--
November 23, 2020
https://issues.dlang.org/show_bug.cgi?id=21405

--- Comment #1 from Nikolay Belov <nocomentsspb@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()

--
August 22, 2021
https://issues.dlang.org/show_bug.cgi?id=21405

Paul Backus <snarwin+bugzilla@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |snarwin+bugzilla@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #2 from Paul Backus <snarwin+bugzilla@gmail.com> ---


*** This issue has been marked as a duplicate of issue 12687 ***

--