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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 28 20:12:27 UTC 2020


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #11337 "Fix Issue 20989 -
Checking array.ptr causes safety error ..." fixing this issue:

- 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