[Issue 23745] New: Segfault with forward reference mismatched override with undeclared type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 26 19:35:28 UTC 2023


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

          Issue ID: 23745
           Summary: Segfault with forward reference mismatched override
                    with undeclared type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dlang-bugzilla at thecybershadow.net

////////// test.d //////////
class B : A
{
    override void fun()
    {
    }
}

class A
{
    void fun(UndefinedType);
}
////////////////////////////

Seems to have regressed in 2.080.0. Previously it correctly complained:

test.d(3): Error: function `test.B.fun` does not override any function, did you
mean to override `test.A.fun`?

--


More information about the Digitalmars-d-bugs mailing list