*** test.cpp ***
#include <random>
int main(int argc, char** argv) {
std::random_device r;
return 0;
}
The above code fail with --std=c++17 on 19.0.4.243 20190416.
shell> icpc -std=c++17 test.cpp -o test
/tmp/icpcnzeTcw.o: In function `main':
test.cpp:(.text+0x39): undefined reference to `__builtin_is_constant_evaluated'
However, it is okay with both c++11 and c++14
shell> icpc -std=c++14 test.cpp -o test
shell> icpc -std=c++11 test.cpp -o test
shell>
I am using RHEL 7.6.
Thanks,
Sunwoo