struct C { float func() { return 0; } }; The C++ version of this code returns via the stack, but the D version returns in ST(0). One of these is obviously wrong. Same for double and real/long double, only on win32. I don't know if this is a bug in dmd or dmc. Anyone?
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c73f7fefb952adbf8f5bfc28d872222854926033 Add workaround for issue 14203 https://github.com/D-Programming-Language/dmd/commit/b1ace291ac3078b55f9895177fe13b3f537874d9 Merge pull request #4423 from yebblies/floatworkaround [DDMD] Add workaround for issue 14203
Commits pushed to https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c73f7fefb952adbf8f5bfc28d872222854926033 Add workaround for issue 14203 https://github.com/D-Programming-Language/dmd/commit/b1ace291ac3078b55f9895177fe13b3f537874d9 Merge pull request #4423 from yebblies/floatworkaround
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c73f7fefb952adbf8f5bfc28d872222854926033 Add workaround for issue 14203 https://github.com/D-Programming-Language/dmd/commit/b1ace291ac3078b55f9895177fe13b3f537874d9 Merge pull request #4423 from yebblies/floatworkaround
Commits pushed to dmd-cxx at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/c73f7fefb952adbf8f5bfc28d872222854926033 Add workaround for issue 14203 https://github.com/dlang/dmd/commit/b1ace291ac3078b55f9895177fe13b3f537874d9 Merge pull request #4423 from yebblies/floatworkaround
@WalterBright created dlang/dmd pull request #11675 "fix Issue 14203 - Return of floating point values from extern(C++) me…" fixing this issue: - fix Issue 14203 - Return of floating point values from extern(C++) member functions does not match dmc https://github.com/dlang/dmd/pull/11675
dlang/dmd pull request #11675 "fix Issue 14203 - Return of floating point values from extern(C++) me…" was merged into master: - 20a2eb3264270d7f42fc71237e3f42331afe9ed3 by Walter Bright: fix Issue 14203 - Return of floating point values from extern(C++) member functions does not match dmc https://github.com/dlang/dmd/pull/11675