[Issue 19192] [wrong-code] [crashes] Covariant method interface <- abstract class <- class hierarchies
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 9 10:48:53 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=19192
--- Comment #6 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12408 "Merge stable into master" was merged into
master:
- df37bc2c2f03180196ceccc64a4f653ad9807f0d by Puneet Goel:
Fix issue 19192 - [wrong-code] [crashes] Covariant method interface <…
(#12302)
* 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/12408
--
More information about the Digitalmars-d-bugs
mailing list