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

Eric Fiselier via llvm-dev llvm-dev at lists.llvm.org
Mon May 9 08:22:18 PDT 2016


std::declval doesn't require compiler support, it's provided by the
standard library, and it's trivial to implement. Are you sure that code is
including <utility>?


On Mon, May 9, 2016 at 9:13 AM, Frank Winter via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> 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?
>
> Thanks,
> Frank
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160509/1a56afc1/attachment.html>


More information about the llvm-dev mailing list