[cfe-dev] Is Clang 3.6 still supported as host compiler for libcxx?
Artyom Skrobov via cfe-dev
cfe-dev at lists.llvm.org
Tue Oct 18 02:41:47 PDT 2016
Hello,
I couldn't find any definite information on which compiler versions are supported for building libcxx.
When trying to build it with clang 3.6.2 or earlier verions, I run into the following compilation error:
projects/libcxx/src/experimental/filesystem/path.cpp:286:14: error: no matching constructor for initialization of 'string_view_t' (aka 'basic_string_view<char>')
return string_view_t{__pn_}.substr(0, e + 1);
^ ~~~~~~~
projects/libcxx/include/string_view:200:2: note: candidate constructor not viable: no known conversion from 'const string_type' (aka 'const basic_string<value_type>') to 'const
std::__1::basic_string_view<char, std::__1::char_traits<char> > &' for 1st argument
basic_string_view(const basic_string_view&) _NOEXCEPT = default;
^
projects/libcxx/include/string_view:215:2: note: candidate constructor not viable: no known conversion from 'const string_type' (aka 'const basic_string<value_type>') to 'const char *' for 1st argument
basic_string_view(const _CharT* __s)
^
projects/libcxx/include/string_view:197:2: note: candidate constructor not viable: requires 0 arguments, but 1 was provided
basic_string_view() _NOEXCEPT : __data (nullptr), __size(0) {}
^
projects/libcxx/include/string_view:206:2: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
basic_string_view(const _CharT* __s, size_type __len)
^
1 error generated.
However, building with clang 3.7.0 or a later version succeeds.
In an ongoing discussion in llvm-dev, it had been mentioned that clang 3.4 is intended to be the oldest supported host compiler for llvm+clang; what's the current policy for libcxx?
More information about the cfe-dev
mailing list