[Issue 20581] DIP1000 wrongly flags hidden ref temporary
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 7 17:06:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20581
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #5 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #12258 "Fix Issue 20581 -
DIP1000 wrongly flags hidden ref temporary" fixing this issue:
- Fix Issue 20581 - DIP1000 wrongly flags hidden ref temporary
Restrict errors for escaping by ref to `VarDeclaration`'s that actually
outlive the referenced `VarDeclaration`.
The only exceptions to this rule are references to other `ref` parameters
https://github.com/dlang/dmd/pull/12258
--
More information about the Digitalmars-d-bugs
mailing list