May 25, 2021 [Issue 20880] [DIP1000] Temporaries escape innards absent destructor | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20880 Paul Backus <snarwin+bugzilla@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |snarwin+bugzilla@gmail.com Resolution|--- |WORKSFORME --- Comment #1 from Paul Backus <snarwin+bugzilla@gmail.com> --- As of DMD 2.096.1, both unittests fail to compile, with the following error messages: --- bug.d(18): Error: returning `temporary.get()` escapes a reference to local variable `temporary` bug.d(24): Error: address of struct literal `S(null)` assigned to longer lived variable `outlive` --- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply