https://issues.dlang.org/show_bug.cgi?id=21412
Issue ID: 21412 Summary: betterC mode program with C++ interface/class crashes Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: mob...@majumdar.org.uk Following code builds in -betterC mode but crashes. Tested on RHEL 7.9, DMD64 D Compiler v2.094.1. import core.stdc.stdio : printf; extern (C++) abstract class A { void sayHello(); } extern (C++) class B : A { @disable this(); override void sayHello() { printf("hello\n"); } } extern (C) void main() { B b; b.sayHello(); } --