[Issue 16381] Wrapping a float4 array leads to segfault.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 12 13:28:34 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16381

--- Comment #6 from b2.temp at gmx.com ---
(In reply to Bartek Siudeja from comment #5)
> does not help. So this seems about the return value of a function.

Yes that's also what I said: return value == copy because float[4] doesn't fit
in a CPU register. when ref is used it's actually the address of the first
float that's returned.

Anyway it's clearly a front-end error, because even LDC returns a run-time
error:

> Invalid bitcast
>   %63 = bitcast [4 x float] %62 to float
> LLVM ERROR: Broken function found, compilation aborted!

--


More information about the Digitalmars-d-bugs mailing list