More traps for bad combo of Intel and libstdc++.

This commit is contained in:
Ye Luo 2020-11-17 09:33:40 -06:00
parent 60a7f2a297
commit 66eed1ff3f
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,13 @@ int main(int argc, char **argv)
// It is kept here as an exmple for the future.
#if ( defined(__INTEL_COMPILER) && ( _GLIBCXX_RELEASE < 7 ) )
#error too old libstdc++ from GNU for Intel compilers, use GNU version >= 7
#endif
// libstdc++ from GCC 8 is bad for Intel 19 in both C++14 and C++17
#if ( ( __INTEL_COMPILER == 1900 ) && ( _GLIBCXX_RELEASE > 7 ) )
#error too new libstdc++ from GNU for Intel 19, use GNU version <= 7
#endif
#if ( ( __INTEL_COMPILER == 1910 ) && ( _GLIBCXX_RELEASE > 9 ) )
#error too new libstdc++ from GNU for Intel 20, use GNU version <= 9
#endif
return 0;
}