Thread overview
[Issue 21476] [codegen] 64 bit C ABI not followed when returning struct with 3 floats
Dec 12, 2020
Mr. Smith
Dec 13, 2020
Mr. Smith
Dec 13, 2020
kinke
December 12, 2020
https://issues.dlang.org/show_bug.cgi?id=21476

Mr. Smith <mrsmith33@yandex.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend, wrong-code

--
December 13, 2020
https://issues.dlang.org/show_bug.cgi?id=21476

--- Comment #1 from Mr. Smith <mrsmith33@yandex.ru> ---
This happened with 2.092.1. On 2.094.2 there is no bug.

Just in case. 2.092.1 didn't handle those correctly too:

struct vec5 { i32 x; i32 y; f32 z; f32 w; }
struct vec6 { f32 x; f32 y; i32 z; i32 w; }

--
December 13, 2020
https://issues.dlang.org/show_bug.cgi?id=21476

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kinke@gmx.net
         Resolution|---                         |FIXED

--- Comment #2 from kinke <kinke@gmx.net> ---
Let's close it then, as this and similar issues have been fixed by https://github.com/dlang/dmd/pull/10200.

--