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 __cpp_coroutines check undefined error #385

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ksherlock
Copy link

@ksherlock ksherlock commented Nov 14, 2021

With -Werror and -Wundef, the clang __cpp_coroutines check can cause an error. (error:
'__cpp_coroutines' is not defined, evaluates to 0 [-Werror,-Wundef]) Presumably the gcc __cpp_impl_coroutine checks would also suffer from this issue.

Error encountered with Apple clang version 11.0.0 (clang-1100.0.33.17)

With `-Werror` and `-Wundef`, the `clang` `__cpp_coroutines` check can cause an error.  (error: 
      '__cpp_coroutines' is not defined, evaluates to 0 [-Werror,-Wundef]) Presumably the gcc `__cpp_impl_coroutine` check would also suffer from this issue.

Error encountered with Apple clang version 11.0.0 (clang-1100.0.33.17)
@viccpp
Copy link

viccpp commented Nov 16, 2021

This style is recommended by the Committee - https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations. So I think usage of -Wundef + -Werror is a bad idea in general

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants