[Issue 20989] Checking array.ptr causes safety error with -checkaction=context

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 4 12:00:15 UTC 2020


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

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/dmd pull request #11337 "Fix Issue 20989 - Checking array.ptr causes
safety error ..." was merged into stable:

- 8591c1da46903cc97c13efb1dbe79a4e7f1872ab by MoonlightSentinel:
  Fix Issue 20989 - Checking array.ptr causes safety error ...

  ... with -checkaction=context.

  Explicity flag `DotIdExpressions` as `noderef` because `_d_assert_fail` will
  not dereference the pointer and thus make the call `@safe`.

https://github.com/dlang/dmd/pull/11337

--


More information about the Digitalmars-d-bugs mailing list