[llvm-bugs] [Bug 36161] New: clang-cl crash when compiling googletest in optimized mode (works with -O0)
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 30 20:31:21 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36161
Bug ID: 36161
Summary: clang-cl crash when compiling googletest in optimized
mode (works with -O0)
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: loorongjie at gmail.com
CC: llvm-bugs at lists.llvm.org
Details of clang 7.0.0 (master):
Built with VS 2017 15.5
LLVM git hash: 8040eab58948470e391cf39ad04e86c3f755260f
clang git hash: da170fedbf6f338cdda33c09260d45895de0e069
CMake custom args:
- -DCMAKE_C_FLAGS=/Gy /Gw /GS-
- -DCMAKE_CXX_FLAGS=/Gy /Gw /GS-
- -DCMAKE_EXE_LINKER_FLAGS=/OPT:REF /OPT:ICF
- -DCMAKE_SHARED_LINKER_FLAGS=/OPT:REF /OPT:ICF
- -DCMAKE_MODULE_LINKER_FLAGS=/OPT:REF /OPT:ICF
- -DLLVM_TARGETS_TO_BUILD=X86
- -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly
Reproduce steps:
git clone --depth 1 https://github.com/google/googletest
cd googletest
mkdir build & cd build
cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl
-DCMAKE_BUILD_TYPE=Release "-DCMAKE_CXX_FLAGS=/D_CRT_SECURE_NO_WARNINGS
/D_CRT_NONSTDC_NO_WARNINGS"
ninja -j1
Result:
clang-cl crash when compiling gtest-all.cc
Crash dump, preprocessed file and command is at
https://drive.google.com/file/d/1j9hJzwmh50kX5n5P7fbW49SjnMDvPaUw/view?usp=sharing
(Bugzilla restricts attachment to be < 1000KB).
--
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/20180131/b953c9be/attachment.html>
More information about the llvm-bugs
mailing list