<div dir="ltr">On 9 June 2013 10:36, Roderick Gibson <span dir="ltr"><<a href="mailto:kniteli@gmail.com" target="_blank">kniteli@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I get a compiler assert failing when trying to compile the follow minimal case:<br>
<br>
import core.simd;<br>
<br>
void main() {<br>
        auto arr = si;<br>
}<br>
<br>
const float4 si = [1f, 1f, 1f, 1f];<br>
<br>
This compiles fine:<br>
<br>
import core.simd;<br>
<br>
void main() {<br>
        auto arr = si;<br>
}<br>
<br>
float4 si = [1f, 1f, 1f, 1f];<br>
<br>
Should I file this or am I doing something dumb here?<br>
</blockquote></div><br></div><div class="gmail_extra" style>Possibly unrelated to this, it looks like a bug... but certainly when it comes to any SIMD operation. It's not really possible to solve unless the compiler becomes aware of all architectures intrinsics.</div>
<div class="gmail_extra" style>One of my goals for std.simd is a CTFE path for all functions in the API.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>This example should surely work though.</div>
</div>