-
Notifications
You must be signed in to change notification settings - Fork 370
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
Explicitly use nest namespace to avoid compiler confusion #2253
Conversation
@hakonsbm Thanks for the quick fix! But some numerics seem to have changed (last bit of float), we probably should change the test to use something like |
@hakonsbm if you like, I am happy to bring your reproducer to the LLVM community's attention. As I am using the main branch of LLVM. |
@heplesser I've updated the test, and all tests pass now. @ikitayama Sure, go ahead. |
Since the problem also occurs with gcc 11 when compiling with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 👍
When compiling with
-std=c++17
, the compiler confuses theapply()
in nest.h withstd::apply()
from<tuple>
. This happens with both GCC and Clang. However, there doesn't seem to be any place where we say that thestd
namespace should be used in that context. The calls are therefore changed to explicitly use thenest
namespace, which fixes the problem and therefore fixes #2252.As a side-note, it's possible to reproduce the behaviour without NEST, with this reproducer.