Bug 17293 – "Using C++ Classes From D" example no longer works

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-04-02T16:27:57Z
Last change time
2017-08-14T23:55:40Z
Assigned to
No Owner
Creator
Roman

Comments

Comment #0 by freeslave93 — 2017-04-02T16:27:57Z
"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.
Comment #1 by bugzilla — 2017-04-11T09:35:30Z
Comment #2 by github-bugzilla — 2017-06-07T02:51:02Z
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/4ec66653c62e9842f253bc4365faac47df876cc0 fix Issue 17293 - 'Using C++ Classes From D' example no longer works https://github.com/dlang/dlang.org/commit/e544828c41840e7fd2424cb331304bbb2903a155 Merge pull request #1631 from WalterBright/fix17293 fix Issue 17293 - 'Using C++ Classes From D' example no longer works
Comment #3 by github-bugzilla — 2017-06-17T11:34:58Z
Commits pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/4ec66653c62e9842f253bc4365faac47df876cc0 fix Issue 17293 - 'Using C++ Classes From D' example no longer works https://github.com/dlang/dlang.org/commit/e544828c41840e7fd2424cb331304bbb2903a155 Merge pull request #1631 from WalterBright/fix17293
Comment #4 by github-bugzilla — 2017-08-14T23:55:40Z
Commits pushed to newCTFE at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/4ec66653c62e9842f253bc4365faac47df876cc0 fix Issue 17293 - 'Using C++ Classes From D' example no longer works https://github.com/dlang/dlang.org/commit/e544828c41840e7fd2424cb331304bbb2903a155 Merge pull request #1631 from WalterBright/fix17293