[llvm-dev] Building LLVM 3.8 and later with 2016 Intel C++ compiler

Frank Winter via llvm-dev llvm-dev at lists.llvm.org
Mon May 9 08:13:29 PDT 2016

Trying to build LLVM 3.8 (or trunk) with the 2016 Intel C++ compiler. It 
fails on the std::declval feature:

llvm-3.8/include/llvm/ADT/iterator_range.h(63): error: namespace "std" 
has no member "declval"
   iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, 
int n) {

An isolated std::declval example shows that this compiler doesn't 
support it. I can't really roll back to an earlier LLVM version since I 
need the latest LLVM backends (avx512f etc). I also can't really use GCC 
to build LLVM since I need to build other parts of the project with 
Intel and linking would then be a problem.

Does this std::declval piece of code happen to be in a place which can 
be turned on/off with a configure/cmake option?


More information about the llvm-dev mailing list