<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - clang-cl ICE on windows snapshot build 3.7.0 SVN r237568" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23653&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=1iBYHXhSm0JCzw0CegG04HZhY02V8zUON7XHhP6wUVE&s=xpWGkkdXjdKUHMrRjQWuNkih-LpA-yD-LSA2gd38Jbs&e=">23653</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl ICE on windows snapshot build 3.7.0 SVN r237568
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>davidhunter22@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Compiler fails on windows snapshot build SVN r237568 build off a command line
prompt build. I suspect this is magic static related as it compile fine if the
variable declaration is non static. 

Compiler error

PHI node entries do not match predecessors!
  %arraydestroy.elementPast = phi %"struct.std::pair"* [ %2, %3 ], [
%arraydestroy.element, %arraydestroy.body ], !dbg !303
label %arraydestroy.body
label %entry
fatal error: error in backend: Broken function found, compilation aborted!

Code 

#include <map>

void foobar(  )
{
    static std::map<std::string,std::string> mapping =
    {
        { "A", "Hello" },
        { "B", "World" }
    };
}

Command line

clang-cl -cc1 -triple x86_64-pc-windows-msvc -emit-obj -mrelax-all
-disable-free -main-file-name Test.cpp -mrelocation-model pic -pic-level 2
-mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -D_DEBUG -D_MT -D_DLL
--dependent-lib=msvcrtd --dependent-lib=oldnames -fcxx-exceptions -fexceptions
-fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer -v
-gline-tables-only -dwarf-column-info -fno-unique-section-names  -D WIN32 -D
_WINDOWS -D _DEBUG -D _UNICODE   -D _WINDLL -D _UNICODE -D UNICODE 
-internal-isystem "C:\\Program Files
(x86)\\LLVM\\msbuild-bin\\..\\lib\\clang\\3.7.0\\include" -internal-isystem
"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
14.0\\VC\\atlmfc\\include" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.10056.0\\ucrt" -internal-isystem "C:\\Program Files
(x86)\\Windows Kits\\10\\Include\\10.0.10069.0\\um" -internal-isystem
"C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.10069.0\\shared"
-internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\10\\Include\\10.0.10069.0\\winrt" -internal-isystem "C:\\Program Files
(x86)\\Windows Kits\\NETFXSDK\\4.6\\Include\\um" -fdeprecated-macro 
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fms-extensions
-fms-compatibility -fms-compatibility-version=19.0 -std=c++14
-fdelayed-template-parsing -fno-inline -fobjc-runtime=gcc
-fdiagnostics-show-option -o Test.obj -x c++ Test.cpp</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>