digitalmars.D.bugs - [Issue 17293] New: "Using C++ Classes From D" example no longer works
- via Digitalmars-d-bugs (20/20) Apr 02 2017 https://issues.dlang.org/show_bug.cgi?id=17293
https://issues.dlang.org/show_bug.cgi?id=17293 Issue ID: 17293 Summary: "Using C++ Classes From D" example no longer works Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: freeslave93 gmail.com "Using C++ Classes From D" example from https://dlang.org/spec/cpp_interface.html crashes if built this way: g++ -c cpp.cpp dmd cpp.o main.d -L-lstdc++ It also returns the wrong value for 'field'. Should be 5, but 0 is returned. Replacing 'interface' with 'abstract class' fixes the problem. --
Apr 02 2017