<div dir="ltr">Yep. I'll look into this.<div><br></div><div>My 2 cents are that libc++ is special, and can't be held to LLVM/Clang's requirements. Implementing C++17 libraries with compilers shipped in 2014 is tricky.</div><div><br></div><div>However we can probably still tolerate older compilers to build the few source files the dylib is made from.</div><div><br></div><div>/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 4:16 AM, Artyom Skrobov <span dir="ltr"><<a href="mailto:Artyom.Skrobov@arm.com" target="_blank">Artyom.Skrobov@arm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Renato, thank you for your comments!<br>
<span class=""><br>
>> I couldn't find any definite information on which compiler versions are supported for building libcxx.<br>
><br>
> Hum, it should be the same as LLVM (3.1, *cough* *cough*).<br>
><br>
><br>
>> However, building with clang 3.7.0 or a later version succeeds.<br>
><br>
</span><span class="">> In this particular case, I think we should fix libc++, not upgrade the<br>
> minimum Clang version to 3.9, as that wouldn't make sense.<br>
<br>
</span>Eric, could you please take a look? This particular issue is due to your r284313.<br>
<br>
For the reference, the compilation error (on clang 3.6.2 and earlier versions) is as follows<br>
<div class="HOEnZb"><div class="h5"><br>
projects/libcxx/src/<wbr>experimental/filesystem/path.<wbr>cpp:286:14: error: no matching constructor for initialization of 'string_view_t' (aka 'basic_string_view<char>')<br>
      return string_view_t{__pn_}.substr(0, e + 1);<br>
             ^            ~~~~~~~<br>
projects/libcxx/include/<wbr>string_view:200:2: note: candidate constructor not viable: no known conversion from 'const string_type' (aka 'const basic_string<value_type>') to 'const<br>
      std::__1::basic_string_view<<wbr>char, std::__1::char_traits<char> > &' for 1st argument<br>
        basic_string_view(const basic_string_view&) _NOEXCEPT = default;<br>
        ^<br>
projects/libcxx/include/<wbr>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<br>
        basic_string_view(const _CharT* __s)<br>
        ^<br>
projects/libcxx/include/<wbr>string_view:197:2: note: candidate constructor not viable: requires 0 arguments, but 1 was provided<br>
        basic_string_view() _NOEXCEPT : __data (nullptr), __size(0) {}<br>
        ^<br>
projects/libcxx/include/<wbr>string_view:206:2: note: candidate constructor not viable: requires 2 arguments, but 1 was provided<br>
        basic_string_view(const _CharT* __s, size_type __len)<br>
        ^<br>
1 error generated.<br>
</div></div></blockquote></div><br></div>