<div dir="ltr"><div class="gmail_extra">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>?</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 9, 2016 at 9:13 AM, Frank Winter via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Trying to build LLVM 3.8 (or trunk) with the 2016 Intel C++ compiler. It fails on the std::declval feature:<br>
<br>
llvm-3.8/include/llvm/ADT/iterator_range.h(63): error: namespace "std" has no member "declval"<br>
  iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {<br>
<br>
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.<br>
<br>
Does this std::declval piece of code happen to be in a place which can be turned on/off with a configure/cmake option?<br>
<br>
Thanks,<br>
Frank<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div></div>