[Issue 20861] New: Interface implementations are not checked when code gen is skipped
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 24 14:12:34 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20861
Issue ID: 20861
Summary: Interface implementations are not checked when code
gen is skipped
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: doob at me.com
The following code should fail to compile but doesn't when code gen is skipped,
i.e. the `-o-` flag is used:
interface Foo
{
void foo();
}
class Bar : Foo
{
}
The reason being that the check if a class implements all methods of an
interface is performed when generating code for the vtable.
--
More information about the Digitalmars-d-bugs
mailing list