[Issue 16381] Wrapping a float4 array leads to segfault.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Aug 12 13:30:44 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16381
--- Comment #7 from b2.temp at gmx.com ---
(In reply to b2.temp from comment #6)
> (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!
"compile-time error" is what I really meant...
--
More information about the Digitalmars-d-bugs
mailing list