Skip to content

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