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

[clang] std::is_invocable fails for __device__ operator() #70006

Closed
Pierre-vh opened this issue Oct 24, 2023 · 3 comments
Closed

[clang] std::is_invocable fails for __device__ operator() #70006

Pierre-vh opened this issue Oct 24, 2023 · 3 comments
Labels
bug Indicates an unexpected problem or unintended behavior clang:frontend Language frontend issues, e.g. anything involving "Sema" cuda duplicate Resolved as duplicate

Comments

@Pierre-vh
Copy link
Contributor

https://godbolt.org/z/WMx5YdYEW

If an operator() is marked __device__ , std::is_invocable fails for that object. This works on nvcc.
I've tried to track this down a bit but I'm unable to. I believe it may have something to do with declval but I'm not sure.

Is this a clang issue, or is nvcc incorrect here?

@Pierre-vh Pierre-vh added bug Indicates an unexpected problem or unintended behavior clang Clang issues not falling into any other category labels Oct 24, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Oct 24, 2023

@llvm/issue-subscribers-bug

Author: Pierre van Houtryve (Pierre-vh)

https://godbolt.org/z/WMx5YdYEW

If an operator() is marked __device__ , std::is_invocable fails for that object. This works on nvcc.
I've tried to track this down a bit but I'm unable to. I believe it may have something to do with declval but I'm not sure.

Is this a clang issue, or is nvcc incorrect here?

@EugeneZelenko EugeneZelenko added clang:frontend Language frontend issues, e.g. anything involving "Sema" and removed clang Clang issues not falling into any other category labels Oct 24, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Oct 24, 2023

@llvm/issue-subscribers-clang-frontend

Author: Pierre van Houtryve (Pierre-vh)

https://godbolt.org/z/WMx5YdYEW

If an operator() is marked __device__ , std::is_invocable fails for that object. This works on nvcc.
I've tried to track this down a bit but I'm unable to. I believe it may have something to do with declval but I'm not sure.

Is this a clang issue, or is nvcc incorrect here?

@Pierre-vh
Copy link
Contributor Author

Duplicate of #69956

@Pierre-vh Pierre-vh marked this as a duplicate of #69956 Oct 26, 2023
@EugeneZelenko EugeneZelenko added duplicate Resolved as duplicate cuda labels Oct 26, 2023
@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior clang:frontend Language frontend issues, e.g. anything involving "Sema" cuda duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

3 participants