Bug 23171 – You can't use std.typecons.Typedef on __vector(*) type

Status
NEW
Severity
minor
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2022-06-07T19:57:08Z
Last change time
2024-12-01T16:40:06Z
Assigned to
No Owner
Creator
Léo Labruyère
Moved to GitHub: phobos#10493 →

Comments

Comment #0 by leo.labruyere — 2022-06-07T19:57:08Z
``` import std.typecons : Typedef; import core.simd : double2; alias fooBar = Typedef!double2; void main() { fooBar foo; } ``` The previous piece of code give the following error : Error: expression `cast(__vector(double[2]))[nan, nan]` is not a valid template value argument Thus, it is not possible to create Typedef on vectorial type (or struct / class with a vectorial type attribute)
Comment #1 by robert.schadek — 2024-12-01T16:40:06Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10493 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB