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
[SYCL] Call to 'printArgs' is ambiguous #1011
Comments
The SYCL's
Even if the top-level "cl" is inlined, I don't see how this could possible clash with the user's @j-stephan, can you give a reproducer, please? |
Sorry for the delay. Here is a reproducer: #include <iostream>
template <typename TArg0, typename... TArgs>
auto printArgs(TArg0 arg, TArgs... args)
{
std::cout << 42 << std::endl;
}
#include <CL/sycl.hpp>
int main()
{
return 0;
} Command line:
Full error log:
Tested with an up-to-date compiler (commit 97a199f). |
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
The commands for clang-offload-bundler have been updated to use -output instead of -outputs. Update test.cpp which uses clang-offload-bundler directly
I am currently trying to implement a SYCL backend for a third-party application. In this application's source code (which I can't change) there is a function called
printArgs
. Unfortunately, this breaks the compilation since there is anotherprintArgs
inside the SYCL implementation:IMHO this shouldn't break so easily since the syntax
printArgs(Arg0, Args...)
is probably quite common.The text was updated successfully, but these errors were encountered: