[Issue 22117] Can't store scope pointer in a SumType
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 24 13:16:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22117
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8208 "Fix Issue 22117 - Can't store scope pointer in
a SumType" was merged into master:
- 5ac515b52c7bb19d81303e4d89e80a6faeaf9028 by Paul Backus:
Fix Issue 22117 - Can't store scope pointer in a SumType
Previously, the assignment of the local variable 'newStorage' to the
longer-lived member variable 'storage' caused scope inference to
(correctly) fail.
newStorage was necessary to work around issues 21229 and 22118. Since
those issues have been fixed, newStorage can be safely removed.
https://github.com/dlang/phobos/pull/8208
--
More information about the Digitalmars-d-bugs
mailing list