Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 11, 2019 [Issue 6958] [CTFE] closures are not yet supported in CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6958 bachmeil@yahoo.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bachmeil@yahoo.com --- Comment #1 from bachmeil@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. -- |
November 17, 2021 [Issue 6958] [CTFE] closures are not yet supported in CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6958 johanengelen@weka.io changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |industry CC| |johanengelen@weka.io -- |
November 17, 2021 [Issue 6958] [CTFE] closures are not yet supported in CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6958 --- Comment #2 from johanengelen@weka.io --- Adding another testcase, because the error message is different from the original testcase: ``` void func(int x, ref int delegate() dg) { int inner() { return x; } dg = &inner; } int check() { int delegate() dg; func(5, dg); return dg(); } pragma(msg, check()); ``` With DMD 2.094.2: <source>(3): Error: variable `x` cannot be read at compile time <source>(10): called from here: `dg()` <source>(12): called from here: `check()` <source>(12): while evaluating `pragma(msg, check())` -- |
August 15, 2022 [Issue 6958] [CTFE] closures are not yet supported in CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6958 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com Severity|normal |enhancement -- |
December 17, 2022 [Issue 6958] [CTFE] closures are not yet supported in CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=6958 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4 -- |
Copyright © 1999-2021 by the D Language Foundation