-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closed
Labels
Description
The release notes indicate that gcc >= 7.1 is sufficient to compile LLVM, but I get the following error when I try with 7.2.0:
<pre>llvm-project/llvm/include/llvm/ADT/StringRef.h:85:65: error: call to non-constexpr function 'static std::size_t std::char_traits<char>::length(const char_type*)'
: Data(Str), Length(Str ? std::char_traits<char>::length(Str) : 0) {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Constexpr char_traits<>::length
was not implemented until gcc 8.1.