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
Fails with Intel compiler in C++11 mode #53
Comments
@mrzv: My guess would be that this is for ICC running on Windows? Is that right? |
@mpark Nope, Linux. |
Hm... I'm not able to repro it on Godbolt although the exact compiler version you mentioned isn't available on Godbolt. I'm testing with 18.0.0, 19.0.0 and 19.0.1. Based on the error message you posted, the error seems to be that the conditional define for Could you check if |
Running the following input through the compiler
prints
|
Ah, I figured it out. I've been doing all of this on a super-computer, which uses a module system. The GCC module is not loaded by default, but the Intel compiler relies on the GCC standard library to work correctly. Loading the gcc module fixes the problem. My bad; thanks for looking into it. |
Ah.. interesting. So without the GCC module ICC defines |
@mrzv What supercomputer site is this? They probably need to set This is unrelated to the issue, of course, but figured I'd leave it out in the open in case it is helpful. |
@morrisonlevi Thanks for the note. This all took place at NERSC. I'll pass this information on to their consultants. |
The following simplest example:
fails to compile with the Intel compiler if I pass it
-std=c++11
, but compiles fine, if I give it-std=c++14
. It compiles in C++11 mode with GCC and Clang.The compiler version is:
The error it reports:
The text was updated successfully, but these errors were encountered: