Bug 24859 – Relational expression for dynamic arrays with vector elements fails to compile

Status
NEW
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-11-13T22:34:55Z
Last change time
2024-12-07T13:43:58Z
Assigned to
No Owner
Creator
Paul Backus
Moved to GitHub: dmd#17220 →

Comments

Comment #0 by snarwin+bugzilla — 2024-11-13T22:34:55Z
As of DMD 2.109.1, the following program fails to compile: --- void main() { __vector(int[4])[] a, b; auto result = a < b; } --- The error message is: --- /usr/include/dmd/druntime/import/core/internal/array/comparison.d(77): Error: expression `r` of type `const(__vector(int[4]))` does not have a boolean value /usr/include/dmd/druntime/import/core/internal/array/comparison.d(77): Error: cannot implicitly convert expression `r` of type `const(__vector(int[4]))` to `int` bug.d(4): Error: template instance `core.internal.array.comparison.__cmp!(__vector(int[4]))` error instantiating ---
Comment #1 by robert.schadek — 2024-12-07T13:43:58Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17220 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB