[Issue 21412] New: betterC mode program with C++ interface/class crashes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 21 23:33:38 UTC 2020
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: nobody at puremagic.com
Reporter: mobile at 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();
}
--
More information about the Digitalmars-d-bugs
mailing list