digitalmars.D.bugs - [Issue 21412] New: betterC mode program with C++ interface/class
- d-bugmail puremagic.com (30/30) Nov 21 2020 https://issues.dlang.org/show_bug.cgi?id=21412
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 puremagic.com Reporter: mobile 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(); } --
Nov 21 2020