Compile with -O: ------------------- import core.simd; void test7951_2() { float[4] v1 = [1,2,3,4]; float[4] v2 = [1,2,3,4]; float4 f1, f2, f3; f1.array = v1; f2.array = v2; f3 = f1 + f2; assert((cast(float[4])f3)[2] == 6); }
Fix: https://github.com/dlang/dmd/pull/12035
The PR was merged.