[llvm-bugs] [Bug 46498] New: error C2440: '<function-style-cast>': cannot convert from 'initializer list' to '`anonymous-namespace'::GenericTaintChecker::FunctionData'

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 28 23:47:18 PDT 2020


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: unassignedclangbugs at nondot.org
          Reporter: 1998zhangyi at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200629/e0806883/attachment-0001.html>


More information about the llvm-bugs mailing list