[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 12:39:25 UTC 2021


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12302 "Fix issue 19192 - [wrong-code] [crashes]
Covariant method interface <…" was merged into stable:

- a7427a67219ed0d8095e0e545b0d73f9e8237906 by Puneet Goel:
  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