ldc-developers / ldc

The LLVM-based D Compiler.
http://wiki.dlang.org/LDC
Other
1.19k stars 257 forks source link

LDC 1.2.0-beta1 SIMD regression #2056

Closed 9il closed 7 years ago

9il commented 7 years ago

This code works in recent DMD and LDC <=1.1.x

void load(ref __vector(double[2]) a, double b)
{
    a = b;
}

LDC 1.2.0 output:

constant expression expected, not b

This feature is used in GLAS.

kinke commented 7 years ago

Hmm, compiles fine with master on Win64 (for Linux too), but I can reproduce it with 1.2.0-beta1.

kinke commented 7 years ago

Thanks for the report, fixed in branch release-1.2.x and will be in the next beta.