[Issue 8545] defined opCast disables cast(void*)this in classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 1 18:18:13 UTC 2023


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

Richard Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |alphaglosined at gmail.com
         Resolution|INVALID                     |---

--- Comment #6 from Richard Cattermole <alphaglosined at gmail.com> ---
I'm reopening this bug report for two reasons:

1. Hipreme ran into this when creating a class manually which had opCast
defined.
2. With the current work replacing _d_newclass with a template, new will no
longer work with a class that isn't ultra-specific with its opCast. In practice
this will be a breaking change, so it's time to fix this bug to prevent code
breakage.

--


More information about the Digitalmars-d-bugs mailing list