[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 00:33:38 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=20458
--- Comment #3 from Basile-z <b2.temp at gmx.com> ---
The same corruption without the getMember trait:
```
mixin template Impl(T){
alias a = T.test;
pragma(msg, typeof(a)); // launch dsymbolsema and corrupt vtbl
}
class A(T) {
mixin Impl!T;
}
class Foo : A!Foo {
void test() {}
}
void main() {
(new Foo).test();
}
```
--
More information about the Digitalmars-d-bugs
mailing list