-
Notifications
You must be signed in to change notification settings - Fork 4
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
id<1>
overloaded operator '*' is ambiguous
#40
Comments
I believe this is correctly diagnosed, because there also exists an implicit conversion constructor from |
This code compiles with DPC++. Maybe we need a Khronos issue to determine which behavior is desired? |
DPC++ has an explicit workaround for this ambiguity. I'm pretty sure the spec doesn't disallow this, but I also could not find any wording that requires it. I agree this needs clarification, the disambiguating overloads seem like a good idea to me. |
I've opened KhronosGroup/SYCL-Docs#711 to discuss this. |
The following code fails to compile with SimSYCL:
I think this should work, because SYCL 2020 defines an implicit conversion of
id<1>
tosize_t
.The error message is impressively long, but points to an ambiguous overload of
*
:The text was updated successfully, but these errors were encountered: