<div dir="ltr">I built clang with that version of MSVC, but I wasn't able to observe the error. I didn't go back to the linked revision, though, so perhaps it was fixed in the meantime. In any case, this line, `friend class TrailingObjects;`, is incorrect, it shouldn't use `class`. I removed it in <a href="https://github.com/llvm/llvm-project/commit/09ba2063dc9339957b999c">https://github.com/llvm/llvm-project/commit/09ba2063dc9339957b999c</a>.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 20, 2020 at 12:57 PM Open Sorcerer via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I see the following compile-time error while building my tool that uses libtooling APIs. </div><div><br></div><div><div></div><div>C:\path\to\source\repos\llvm-project\clang\include\clang/AST/ExprCXX.h(4867,31): error C2990: 'llvm::TrailingObjects': non-class template has already been declared as a class template</div></div><div><br></div><div><div style="color:rgb(0,0,0)">Compiler used:</div><div style="color:rgb(0,0,0)">Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29334 for x64</div></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">I see no such error in Linux builds of the same sources built using gcc installed on Ubuntu 20.4 and Ubuntu 18.04 .</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">Can someone knowledgeable please point me to a solution that addresses this build failure on Windows 10?</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">Tip of llvm-project repo in use:</div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)"><div>commit adf9f64a02838a16d0c6cadfbd089254b126bd22 (HEAD -> master, origin/master, origin/HEAD)</div><div>Author: ergawy <<a href="mailto:kareem.ergawy@gmail.com" target="_blank">kareem.ergawy@gmail.com</a>></div><div>Date:   Wed Nov 18 12:43:06 2020 -0500</div><div><br></div><div>    [MLIR][SPIRV] Rename `spv._reference_of` to `spv.mlir.referenceof`</div><div><br></div><div>    This commit does the renaming mentioned in the title in order to bring</div><div>    'spv' dialect closer to the MLIR naming conventions.</div><div><br></div><div>    Reviewed By: antiagainst</div><div><br></div><div>    Differential Revision: <a href="https://reviews.llvm.org/D91715" target="_blank">https://reviews.llvm.org/D91715</a></div><div><br></div></div><div style="color:rgb(0,0,0)">Thanks!</div><div><br></div></div></div></div></div>
_______________________________________________<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="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>