<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - error C2440: '<function-style-cast>': cannot convert from 'initializer list' to '`anonymous-namespace'::GenericTaintChecker::FunctionData'"
   href="https://bugs.llvm.org/show_bug.cgi?id=46498">46498</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error C2440: '<function-style-cast>': cannot convert from 'initializer list' to '`anonymous-namespace'::GenericTaintChecker::FunctionData'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++2a
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>1998zhangyi@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi All,

We build LLVM on MSVC to detect compiler regression. On the new repo
<a href="https://github.com/llvm/llvm-project/commits/master">https://github.com/llvm/llvm-project/commits/master</a>, 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 <a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a> 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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>