-
Notifications
You must be signed in to change notification settings - Fork 167
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
[BUG]: Proclaiming copyable arguments for lambdas fails to compile #2834
Comments
Surprisingly, it also fails for ordinary function objects: https://godbolt.org/z/EqbjzeT9h |
Alright, this is a problem with the host compiler g++-10, which is used on compiler explorer. I can reproduce the problem locally. With g++-11:
it works, but changing to g++-10:
|
We need to implement a workaround for g++-10. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a duplicate?
Type of Bug
Compile-time Error
Component
libcu++
Describe the bug
The following code fails to compile:
How to Reproduce
https://godbolt.org/z/KbPKaoxW8
Expected behavior
It should succeed to compile.
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: