| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
May 12, 2022 [Issue 23054] importC: struct compound-literal assigned by pointer has wrong storage duration | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23054 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> --- test1: I didn't realize that 6.5.2.5 Compound Literals could be non-static. This will require some significant work to implement. -- | ||||
May 12, 2022 [Issue 23054] importC: struct compound-literal assigned by pointer has wrong storage duration | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23054 --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> --- test3 is checking the location of the temporary. C11 does not specify the location. Whether the address matches or not in the scope in the loop does not matter, as the lifetime of the temporary does not survive the scope. In any case, the temporary is allocated on the stack, not statically and not on the GC heap. -- | ||||
May 12, 2022 [Issue 23054] importC: struct compound-literal assigned by pointer has wrong storage duration | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23054 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> --- @WalterBright created dlang/dmd pull request #14118 "fix Issue 23054 - importC: struct compound-literal assigned by pointe…" fixing this issue: - fix Issue 23054 - importC: struct compound-literal assigned by pointer has wrong storage duration https://github.com/dlang/dmd/pull/14118 -- | ||||
May 14, 2022 [Issue 23054] importC: struct compound-literal assigned by pointer has wrong storage duration | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23054 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 #14118 "fix Issue 23054 - importC: struct compound-literal assigned by pointe…" was merged into master: - 2b9ee9918bd4b8d160622df662413111bdb841ed by Walter Bright: fix Issue 23054 - importC: struct compound-literal assigned by pointer has wrong storage duration https://github.com/dlang/dmd/pull/14118 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply