https://llvm.org/bugs/show_bug.cgi?id=25537
Bug ID: 25537 Summary: [mingw] unordered_map crashes clang with -O2 optimisation Product: clang Version: 3.7 Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: vit9...@avp.su CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15292 --> https://llvm.org/bugs/attachment.cgi?id=15292&action=edit t-089b7b Clang appears to badly dislike -O2 (and higher) when compiling code with unordered_maps. My package manager is msys2 on Windows 8.1, and I do not have debug symbols for the binary. Postprocessed code and expanded arguments are included in the attachement. Could be a duplicate, but I failed to find any. #include <unordered_map> int main() { std::unordered_map <int, int> m; } clang++ -c -std=c++11 -O2 t.cpp 0x04F7D8D8 (0x04F7D8D1 0x00000001 0x0028E040 0x04FA3C38) <unknown module> 0x0028E409 (0x00000001 0x0028E040 0x04FA3C38 0x0000000A) <unknown module> 0x04F7D8D1 (0x01000000 0x00000000 0xFC000000 0x00FFFFFF) <unknown module> clang++.exe: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.7.0 (tags/RELEASE_370/final) Target: i686-w64-windows-gnu Thread model: posix clang++.exe: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. clang++.exe: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++.exe: note: diagnostic msg: C:\msys64\tmp\t-089b7b.cpp clang++.exe: note: diagnostic msg: C:\msys64\tmp\t-089b7b.sh clang++.exe: note: diagnostic msg: -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs