Thread overview | |||||
---|---|---|---|---|---|
|
May 24, 2022 [Issue 23113] Bug in CTFE initialization of redBlackTree? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23113 duser@neet.fi changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |CTFE CC| |duser@neet.fi --- Comment #1 from duser@neet.fi --- reduced the example to this: void main() { { Tree tree = Tree(1); assert(tree.node is tree.node.self); // ok } { __gshared static Tree tree = Tree(1); assert(tree.node is tree.node.self); // fail } } struct Tree { Node* node; this(int) { node = new Node; node.set(); assert(node.self is node); // ok } } struct Node { Node* self; void set() { self = &this; } } "&this" inside a struct in CTFE seems to have a wrong value when converted to static data (it's correct if you check it with assert in CTFE but not if you check the value at runtime) -- |
December 17, 2022 [Issue 23113] Bug in CTFE initialization of redBlackTree? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23113 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 -- |
December 13 [Issue 23113] Bug in CTFE initialization of redBlackTree? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23113 --- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20103 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation