Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

-std=c++17 fails with std::random on 19.0.4.243 20190416

$
0
0

*** 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


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>