https://issues.dlang.org/show_bug.cgi?id=23195
--- Comment #4 from Walter Bright <[email protected]> --- (In reply to simon.vanbernem from comment #0) > Microsoft states in their C++ x64 calling convention that structs with a > maximum size of 8 bytes should be passed by value through registers (POD or > not doesn't matter). > [...] > (https://docs.microsoft.com/en-us/cpp/build/x64-calling-convention?view=msvc- > 170#parameter-passing) Microsoft's documentation is doesn't match the behavior of their compiler. Having a destructor does not affect whether a struct is passed by ref or not, but having a copy constructor does (contrary to the documentation). --
