[Issue 20581] DIP1000 wrongly flags hidden ref temporary

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 22 02:47:27 UTC 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12258 "Fix Issue 20581 - DIP1000 wrongly flags hidden
ref temporary" was merged into master:

- 7fa99471be7ecaba5c9472a1a5d7f2f78c3c1fde by MoonlightSentinel:
  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