[LLVMbugs] [Bug 23653] New: clang-cl ICE on windows snapshot build 3.7.0 SVN r237568

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 25 18:26:46 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23653

            Bug ID: 23653
           Summary: clang-cl ICE on windows snapshot build 3.7.0 SVN
                    r237568
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: davidhunter22 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20150526/eb410fc0/attachment.html>


More information about the llvm-bugs mailing list