-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error compiling with -std=c++20 using CUDA/Clang #2627
Comments
It looks like Clang/CUDA wants There are two ways to fix the errors:
I'd be happy to prepare a PR pending feedback on which approach would be preferred. |
andrewcorrigan
added a commit
to andrewcorrigan/fmt
that referenced
this issue
Dec 3, 2021
I think we should go with option 1 because option 2 would break compile-time formatting. A PR is welcome. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm encountering errors compiling with
clang++ -x cuda
using-std=c++20
. I observed this on the current commit on master and bisected to the commit where the errors arose to be [fd34a3d].A simple reproducer is:
The errors are triggered using Clang 10, 11, 12 (perhaps 13 as well, but I can't test that immediately) with the following command-line arguments:
The first of ten error messages is:
Note, the following builds fine:
The text was updated successfully, but these errors were encountered: