[Issue 22117] Can't store scope pointer in a SumType

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 23 14:07:53 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22117

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #8208 "Fix Issue 22117 - Can't store
scope pointer in a SumType" fixing this issue:

- 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