Thread overview | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
December 27, 2018 [Issue 19519] cannot determine length of MirException._payload at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 Илья Ярошенко <ilyayaroshenko@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |CTFE, rejects-valid -- |
December 27, 2018 [Issue 19519] cannot determine length of MirException._payload at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 --- Comment #1 from Илья Ярошенко <ilyayaroshenko@gmail.com> --- Recent DMD BETA and DMD nightly -- |
February 11, 2019 [Issue 19519] cannot determine length of MirException._payload at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 --- Comment #2 from Илья Ярошенко <ilyayaroshenko@gmail.com> --- Reduced test case: private enum maxMsgLen = 1; class C { private char[maxMsgLen] _payload = void; } void initilizePayload(ref return char[maxMsgLen] payload, scope const(char)[] msg) { payload[0 .. msg.length] = msg; } /// unittest { bool func() { /// scope messages are copied auto m = new C(); initilizePayload(m._payload, "msg"); return __ctfe; } static assert(func() == 1); } =========== onlineapp.d(12): Error: cannot determine length of C([__void])._payload at compile time onlineapp.d(22): called from here: initilizePayload(m._payload, "msg") onlineapp.d(26): called from here: func() onlineapp.d(26): while evaluating: static assert(cast(int)func() == 1) -- |
April 12, 2019 [Issue 19519] cannot determine length of static array at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 Илья Ярошенко <ilyayaroshenko@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|cannot determine length of |cannot determine length of |MirException._payload at |static array at compile |compile time |time -- |
April 17, 2019 [Issue 19519] cannot determine length of static array at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> --- @kubo39 created dlang/dmd pull request #9634 "Fix Issue 19519 - cannot determine length of static array at compile …" fixing this issue: - Fix Issue 19519 - cannot determine length of static array at compile time https://github.com/dlang/dmd/pull/9634 -- |
April 17, 2019 [Issue 19519] cannot determine length of static array at compile time | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19519 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> --- dlang/dmd pull request #9634 "Fix Issue 19519 - cannot determine length of static array at compile …" was merged into stable: - 171ea64a00caaf1aecb9e782b3c848ff6c90d750 by Hiroki Noda: Fix Issue 19519 - cannot determine length of static array at compile time https://github.com/dlang/dmd/pull/9634 -- |
Copyright © 1999-2021 by the D Language Foundation