Bug 23443 – Cannot compare structs with vector fields for equality

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-10-29T08:25:52Z
Last change time
2024-12-13T19:25:18Z
Keywords
SIMD
Assigned to
No Owner
Creator
Walter Bright
Moved to GitHub: dmd#20172 →

Comments

Comment #0 by bugzilla — 2022-10-29T08:25:52Z
As reported by Iain Buclaw https://github.com/dlang/dmd/pull/14597#issuecomment-1294748189 alias int4 = __vector(int[4]); struct S4 { int i; int4 v; float f; } bool eq(S4 a, S4 b) { return a == b; } The error is: Error: expression `a.v == b.v` of type `__vector(int[4])` does not have a boolean value
Comment #1 by robert.schadek — 2024-12-13T19:25:18Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20172 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB