[Issue 19192] [wrong-code] [crashes] Covariant method interface <- abstract class <- class hierarchies
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 24 08:42:28 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=19192
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
@puneet created dlang/dmd pull request #12302 "Fix issue 19192 - [wrong-code]
[crashes] Covariant method interface <…" fixing this issue:
- Fix issue 19192 - [wrong-code] [crashes] Covariant method interface <-
abstract class <- class hierarchies
While analyzing covariant methods, dmd semantic analyzer searched for
immediate interfaces of the class that may have a vtbl entry matching
the method. This failed for possible scenarios where the covariant
method may be declared in an interface inheritance of an abstract base
class.
The fix adds a for loop that iterates over the base classes to find
the relevant interface with matching vtbl entry.
https://github.com/dlang/dmd/pull/12302
--
More information about the Digitalmars-d-bugs
mailing list