<div dir="ltr">Yeah, looks like a bug in libstdc++ (the GNU C++ standard library implementation) - Clang will use that if that's what it finds.<br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 3, 2018 at 6:20 AM Nikita Alekseev via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually I already found the issue and it really seems like a bug. Standard does not require type to be copy assignable, but internally both clang and gcc use std::copy, which is more efficient, than for example initialized move, however this places additional requirement of being copy assignable on an underlying type.<br>
<br>
Maybe create overload for only move assignable type? We can still fallback to current implementation if copy assignment is implemented.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>