Bug 19347 – can inherit a C++ class from Object

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-02T01:06:14Z
Last change time
2024-12-13T19:01:07Z
Keywords
accepts-invalid, C++
Assigned to
No Owner
Creator
Nicholas Wilson
Moved to GitHub: dmd#19501 →

Comments

Comment #0 by iamthewilsonator — 2018-11-02T01:06:14Z
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 by robert.schadek — 2024-12-13T19:01:07Z
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