Comment #0 by bearophile_hugs — 2013-06-22T07:43:21Z
import core.simd;
void main() {
double x = 1.0, y = 2.0;
double2 a = [x, y];
}
DMD 2.064alpha gives:
test.d(4): Error: Floating point constant expression expected instead of x
test.d(4): Error: Floating point constant expression expected instead of y
(This code compiles and works correctly on LDC2 v.0.11.0).
Comment #1 by ibuclaw — 2013-12-09T01:56:13Z
Limitation of dmd backend (see VectorExp::toElem).
Comment #2 by ibuclaw — 2013-12-09T02:08:13Z
*** This issue has been marked as a duplicate of issue 7509 ***