https://bugs.llvm.org/show_bug.cgi?id=46498
Bug ID: 46498
Summary: error C2440: '<function-style-cast>': cannot convert
from 'initializer list' to
'`anonymous-namespace'::GenericTaintChecker::FunctionD
ata'
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Hi All,
We build LLVM on MSVC to detect compiler regression. On the new repo
https://github.com/llvm/llvm-project/commits/master, we found error C2440 when
building LLVM under /std:c++latest mode, can you help look? Thanks.
build steps:
1. open VS2019 x64 tools command
2. git clone https://github.com/llvm/llvm-project LLVM
3. cd LLVM
4. mkdir build_x64 && pushd build_x64
5. cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0
-DLLVM_ENABLE_PROJECTS="clang" ..\llvm
6. set _CL_=/std:c++latest
7. msbuild /maxcpucount:4 /p:Platform=x64 /p:Configuration=RelWithDebInfo
/p:PreferredToolArchitecture=x64 ALL_BUILD.vcxproj /t:Rebuild
error info:
GenericTaintChecker.i
F:\gitP\llvm\llvm-project\clang\lib\StaticAnalyzer\Checkers\GenericTaintChecker.cpp(126):
error C2440: '<function-style-cast>': cannot convert from 'initializer list' to
'`anonymous-namespace'::GenericTaintChecker::FunctionData'
F:\gitP\llvm\llvm-project\clang\lib\StaticAnalyzer\Checkers\GenericTaintChecker.cpp(126):
note: No constructor could take the source type, or constructor overload
resolution was ambiguous
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs