[Issue 20458] CRTP + pass alias to virtual member to mixin = runtime crash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 23 07:28:49 UTC 2023


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

--- Comment #4 from Basile-z <b2.temp at gmx.com> ---
Finally the generic reproduction

```
class Base
{
    alias a = Derived.test;
    pragma(msg, typeof(a)); // triggers the vtbl corruption
}

class Derived : Base
{
    void test(){}
}

void main()
{
    (new Derived).test();
}   
```

--


More information about the Digitalmars-d-bugs mailing list