www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21412] New: betterC mode program with C++ interface/class


          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() {

extern (C) void main() {
    B b;

Nov 21 2020