D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19347 - can inherit a C++ class from Object
Summary: can inherit a C++ class from Object
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: No Owner
URL:
Keywords: accepts-invalid, C++
Depends on:
Blocks:
 
Reported: 2018-11-02 01:06 UTC by Nicholas Wilson
Modified: 2024-12-13 19:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nicholas Wilson 2018-11-02 01:06:14 UTC
extern(C++) class A : Object {}


void main()
{
    import std.stdio;
    auto a = new A();
    writeln(a.toString()); // Crash
}

Noticed in https://github.com/dlang/druntime/pull/2318#issuecomment-426077283
Comment 1 dlangBugzillaToGithub 2024-12-13 19:01:07 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19501

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB