<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’ll fix the bogus `std::move`. That being said, how up to date is your checkout of clang-tools-extra?<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2018, at 00:31, vit9696 <<a href="mailto:vit9696@avp.su" class="">vit9696@avp.su</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">Thanks for a quick reply. I included the compilation log in the attachment for clarity. Just in case the compiler is the latest clang from Xcode 9.2.</div><div class=""><br class=""></div><div class="">$ clang --version<br class="">Apple LLVM version 9.0.0 (clang-900.0.39.2)<br class="">Target: x86_64-apple-darwin17.4.0<br class="">Thread model: posix<br class="">InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</div><div class=""><br class=""></div><div class="">The code that was added looks like the one below. I don’t think it is valid C++ regardless of the compiler used (and in fact clang 5.0, clang 7.0, gcc 7.0 fail to compile this example as well, and it makes good sense).</div><div class="">While it is a little off the topic, which compiler do you use that has no problems with this code? Perhaps it was dead code previously?</div><div class=""><br class=""></div><div class=""><div class="">#include <utility></div><div class=""><br class=""></div><div class="">struct A{};</div><div class="">struct B {</div><div class="">  const A a{};</div><div class="">  void m(B &&other) {</div><div class="">    a = std::move(other.a);</div><div class="">  }</div><div class="">};</div><div class=""><br class=""></div><div class="">int main() {</div><div class="">  B b1, b2;</div><div class="">  b2.m(std::move(b1));</div><div class="">}</div><div class=""><br class=""></div><div class="">Best wishes,</div><div class="">Vit</div><div class=""><br class=""></div><div class=""></div></div></div><span id="cid:AF3C6BE1-223E-4EE3-880C-AF12BF89E751@twcny.rr.com"><log.txt></span><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">29 марта 2018 г., в 7:06, David Zarzycki <<a href="mailto:dave@znu.io" class="">dave@znu.io</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Can you be more specific? What version of clang are you using to build LLVM? And what exactly is the error that you’re seeing?<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Mar 28, 2018, at 23:38, vit9696 via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">May I ask anyone responsible to either fix or revert r326109 and r326110, which effectively broke LLVM compilation with clang?</div><div class=""><br class=""></div><div class="">Str is const now (<a href="https://reviews.llvm.org/D43436#C985082NL45" class="">https://reviews.llvm.org/D43436#C985082NL45</a>), and later on a move constructor on const is performed (<a href="https://reviews.llvm.org/D43436#C985082NL64" class="">https://reviews.llvm.org/D43436#C985082NL64</a>).</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Vitaly</div></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>