Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Warnings when compiling with 32-bit windows compiler #46881

Open Quuxplusone opened 4 years ago

Quuxplusone commented 4 years ago
Bugzilla Link PR47912
Status NEW
Importance P enhancement
Reported by Albert (albert.tests@gmail.com)
Reported on 2020-10-20 03:01:11 -0700
Last modified on 2020-10-20 03:02:43 -0700
Version trunk
Hardware PC Windows NT
CC albert.tests@gmail.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments warnings.txt (15214 bytes, text/plain)
Blocks
Blocked by
See also
Created attachment 24081
Details of complation and warnings

When I compile my simple file:
#include <clang-c/Index.h>
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Tooling.h"

with the 32-bit Microsoft Visual studio (on Windows 10 64-bit) I get a lot of
warnings like:
E:\Programs\LLVM\llvm-project\llvm\include\llvm/Support/type_traits.h(79):
warning C4624: 'llvm::detail::copy_construction_triviality_helper<T>':
destructor was implicitly defined as deleted
        with
        [
            T=std::string
        ]

The full details can be found in the attachment.

In my case it happens with the 9.0.1. version but I see the same problem with
the current master (1e32df2f91f1aa1f8cd400ce50a621578fa0534e) (could not
complete this build as there was a compilation crash of LLVM / clang) and I've
had a report that it also happens with the 5.0.0 version so it looks like a
long standing problem.
Quuxplusone commented 4 years ago

Attached warnings.txt (15214 bytes, text/plain): Details of complation and warnings