[cfe-dev] MSVC 2019 - Compilation error in clang/AST/ExprCXX.h

Open Sorcerer via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 20 12:57:26 PST 2020


Hello,

I see the following compile-time error while building my tool that uses
libtooling APIs.

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

Compiler used:
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29334 for x64

I see no such error in Linux builds of the same sources built using gcc
installed on Ubuntu 20.4 and Ubuntu 18.04 .

Can someone knowledgeable please point me to a solution that addresses this
build failure on Windows 10?

Tip of llvm-project repo in use:

commit adf9f64a02838a16d0c6cadfbd089254b126bd22 (HEAD -> master,
origin/master, origin/HEAD)
Author: ergawy <kareem.ergawy at gmail.com>
Date:   Wed Nov 18 12:43:06 2020 -0500

    [MLIR][SPIRV] Rename `spv._reference_of` to `spv.mlir.referenceof`

    This commit does the renaming mentioned in the title in order to bring
    'spv' dialect closer to the MLIR naming conventions.

    Reviewed By: antiagainst

    Differential Revision: https://reviews.llvm.org/D91715

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20201120/0a0010b7/attachment.html>


More information about the cfe-dev mailing list