Bug 19630 – [CTFE][SIMD] Error: cannot determine length of vector slice at compile time

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-01-28T23:36:32Z
Last change time
2022-10-20T08:27:09Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=19788

Comments

Comment #0 by ibuclaw — 2019-01-28T23:36:32Z
enum int4 E1 = int4.init; enum int[4] E2 = int4.init.array; enum int[4] E4 = cast(int[4])int4.init.array; enum int4 E5 = int4(0); enum int[4] E6 = int4(0).array; enum int[4] E8 = cast(int[4])int4(0).array; enum v1 = E1[1..2]; enum v2 = E2[1..2]; enum v4 = E4[1..2]; enum v5 = E5[1..2]; enum v6 = E6[1..2]; auto v7 = E7[1..2]; enum v8 = E8[1..2];
Comment #1 by dlang-bot — 2019-03-10T13:32:19Z
@ibuclaw created dlang/dmd pull request #9438 "[dmd-cxx] Backport vector array fixes from master" fixing this issue: - fix Issue 19630 - Error: cannot determine length of vector slice at compile time https://github.com/dlang/dmd/pull/9438
Comment #2 by dlang-bot — 2019-03-12T19:52:31Z
dlang/dmd pull request #9438 "[dmd-cxx] Backport vector array fixes from master" was merged into dmd-cxx: - adbe7161070b1972371ec8c6869000ba6f3aacd0 by Iain Buclaw: fix Issue 19630 - Error: cannot determine length of vector slice at compile time https://github.com/dlang/dmd/pull/9438