Thread overview
[Issue 20989] Checking array.ptr causes safety error with -checkaction=context
Jun 28, 2020
Dlang Bot
Jul 04, 2020
Dlang Bot
Jul 09, 2020
Dlang Bot
June 28, 2020
https://issues.dlang.org/show_bug.cgi?id=20989

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

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

--- Comment #1 from Dlang Bot <dlang-bot@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

--
July 04, 2020
https://issues.dlang.org/show_bug.cgi?id=20989

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

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

--- Comment #2 from Dlang Bot <dlang-bot@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

--
July 09, 2020
https://issues.dlang.org/show_bug.cgi?id=20989

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11400 "merge stable" was merged into master:

- 95be29f324c6eb655ff93807102120d7d5c80ee5 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/11400

--