[Issue 21321] Class with unimplemented interface method compiles, links, then segfaults, if inherited through abstract base class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 9 02:24:24 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21321
Adam D. Ruppe <destructionator at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |destructionator at gmail.com
Severity|major |regression
--- Comment #3 from Adam D. Ruppe <destructionator at gmail.com> ---
I just hit this again too.
---
interface A {
void foo();
}
abstract class B(CRTP) : A { }
class C : B!C {}
void main() {
auto c = new C;
c.foo();
}
---
Appears to be introduced recently:
2.079.1 to 2.092.1: Failure with output:
-----
onlineapp.d(7): Error: class `onlineapp.C` interface function `void foo()` is
not implemented
onlineapp.d(7): Error: class `onlineapp.C` interface function `void foo()` is
not implemented
-----
Since 2.093.1: Failure with output: Error: program killed by signal 11
As such I'm upping the severity of this to regression.
--
More information about the Digitalmars-d-bugs
mailing list