D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19629 - [CTFE][SIMD] Error: cannot determine length of `cast(__vector(int[4]))0` at compile time
Summary: [CTFE][SIMD] Error: cannot determine length of `cast(__vector(int[4]))0` at c...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-28 23:31 UTC by Iain Buclaw
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2019-01-28 23:31:44 UTC
enum int4   E5 = int4(0);
enum int[4] E6 = int4(0).array;
enum int[4] E8 = cast(int[4])int4(0).array;

enum v5 = E5[0];
enum v6 = E6[0];
enum v8 = E8[0];
Comment 1 Iain Buclaw 2019-03-12 22:14:31 UTC
Doesn't happen with gdc, possibly because of this patch.

https://github.com/dlang/dmd/pull/7065
Comment 2 basile-z 2019-07-11 00:38:19 UTC
works since 2.085