[Issue 6958] [CTFE] closures are not yet supported in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 11 19:10:51 UTC 2019


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

bachmeil at yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bachmeil at yahoo.com

--- Comment #1 from bachmeil at yahoo.com ---
This is still valid. Tested on DMD 2.080.0:

closure.d(5): Error: closures are not yet supported in CTFE
closure.d(10):        called from here: bar6958(4)
closure.d(15):        called from here: foo6958()
closure.d(15):        while evaluating: static assert(foo6958())

I think it should be an enhancement rather than a bug though.

--


More information about the Digitalmars-d-bugs mailing list