[Issue 1747] class to base interface static cast is incorrect in some cases

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 18 05:11:06 PDT 2015


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=2013
            Summary|interface inheritance +     |class to base interface
                   |casting ==> wrong method    |static cast is incorrect in
                   |invoked                     |some cases

--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Andrej Mitrovic from comment #5)
> Simplified test-case:

The cast from C to IB cast needs to be a static cast (pointer offset can be
determined at compile time).
But it's currently done by using dynamic cast, and then, because of issue 2013,
the dynamic cast result is incorrect.

--


More information about the Digitalmars-d-bugs mailing list