<div dir="ltr">This patch should be merge into the 4.0 branch.<div><br></div><div>It fixes a bug introduced to the 4.0 branch in r292354 (<a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216054">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216054</a>).</div><div><br></div><div>/Eric</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 2:24 PM, Eric Fiselier via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@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">Author: ericwf<br>
Date: Mon Jan 23 15:24:58 2017<br>
New Revision: 292830<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=292830&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=292830&view=rev</a><br>
Log:<br>
Fix GCC C++03 build by hiding default template argument in C++03<br>
<br>
Modified:<br>
    libcxx/trunk/include/string<br>
<br>
Modified: libcxx/trunk/include/string<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string?rev=292830&r1=292829&r2=292830&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/libcxx/trunk/include/<wbr>string?rev=292830&r1=292829&<wbr>r2=292830&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- libcxx/trunk/include/string (original)<br>
+++ libcxx/trunk/include/string Mon Jan 23 15:24:58 2017<br>
@@ -818,7 +818,10 @@ public:<br>
     operator __self_view() const _NOEXCEPT { return __self_view(data(), size()); }<br>
<br>
     basic_string& operator=(const basic_string& __str);<br>
+<br>
+#ifndef _LIBCPP_CXX03_LANG<br>
     template <class = void><br>
+#endif<br>
     _LIBCPP_INLINE_VISIBILITY<br>
     basic_string& operator=(__self_view __sv)  {return assign(__sv);}<br>
 #ifndef _LIBCPP_HAS_NO_RVALUE_<wbr>REFERENCES<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>