← Back to index
|
Original Bugzilla link
Bug 23220 – CTFE: Casting from static array to vector should result in an element-wise conversion
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-06-29T10:58:48Z
Last change time
2024-12-13T19:23:38Z
Keywords
CTFE, rejects-valid, wrong-code
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=23219
,
https://issues.dlang.org/show_bug.cgi?id=23218
,
https://issues.dlang.org/show_bug.cgi?id=23221
Moved to GitHub: dmd#20126 →
Comments
Comment #0
by ibuclaw — 2022-06-29T10:58:48Z
i.e: --- int[4] arr = [1,2,3,4]; float4 vec = cast(float4)arr; assert(vec.array == [1,2,3,4]);
Comment #1
by robert.schadek — 2024-12-13T19:23:38Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/20126
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB