Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relational expression for dynamic arrays with vector elements fails to compile #17220

Open
dlangBugzillaToGithub opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@dlangBugzillaToGithub
Copy link

Paul Backus (@pbackus) reported this on 2024-11-13T22:34:55Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=24859

Description

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
---
@thewilsonator thewilsonator added the Druntime Specific to druntime label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants