This is code is accepted by the compiler, but should be rejected, to be consistent with static and dynamic array ops. --- float4 v1; int4 v2 = [1,2,3,4]; int4 v3 = [5,6,7,8]; v1 = v2 + v3; // Prints: [8.40779e-45, 1.12104e-44, 1.4013e-44, 1.68156e-44] writeln(v1.array); ---
https://github.com/dlang/dmd/pull/7065
@ibuclaw updated dlang/dmd pull request #7065 "fix Issue 17720 - Wrong code using vector extensions with different types" fixing this issue: - fix Issue 17720 - Wrong code using vector extensions with different types https://github.com/dlang/dmd/pull/7065
dlang/dmd pull request #7065 "fix Issue 17720 - Wrong code using vector extensions with different types" was merged into master: - 0aeef222a3ce271f3e6637df3ab17a983bd45689 by Iain Buclaw: fix Issue 17720 - Wrong code using vector extensions with different types https://github.com/dlang/dmd/pull/7065