Thread overview
[Issue 23957] Casting to derived extern(C++) class is unsafe
Jun 03, 2023
Nick Treleaven
Jun 03, 2023
Dlang Bot
Jun 10, 2023
Dlang Bot
Jun 10, 2023
Nick Treleaven
Jul 14
Dlang Bot
June 03, 2023
https://issues.dlang.org/show_bug.cgi?id=23957

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=21690

--
June 03, 2023
https://issues.dlang.org/show_bug.cgi?id=23957

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

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

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dmd pull request #15294 "Fix Issue 23957 - Casting to derived extern(C++) class is unsafe" fixing this issue:

- Fix Issue 23957 - Casting to derived extern(C++) class is unsafe

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

--
June 10, 2023
https://issues.dlang.org/show_bug.cgi?id=23957

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel updated dlang/dlang.org pull request #3619 "[spec/function] Improve `return` struct method attribute docs" fixing this issue:

- [spec/function] Document `return` parameters without `scope`

  Fixes Issue 23957 - Casting to derived extern(C++) class is unsafe.
  Part of Issue 17934 - [scope] scopeness entrypoint for unique/ref-counted
  missing.

  Add 'Struct Return Methods' subheading.

https://github.com/dlang/dlang.org/pull/3619

--
June 10, 2023
https://issues.dlang.org/show_bug.cgi?id=23957

--- Comment #3 from Nick Treleaven <nick@geany.org> ---
The above pull is unrelated, and has been removed from its commit message.

--
July 14
https://issues.dlang.org/show_bug.cgi?id=23957

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel updated dlang/dmd pull request #15293 "Disallow dynamic cast to extern(C++) class" fixing this issue:

- Fix Issue 23957 - Casting to derived extern(C++) class is unsafe

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

--