Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

got error when compile c++ code under VS2013 #23725

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR23726
Status NEW
Importance P normal
Reported by sheng zhang (zs0723@gmail.com)
Reported on 2015-06-02 02:02:13 -0700
Last modified on 2015-06-04 18:35:41 -0700
Version trunk
Hardware PC Windows NT
CC llvm-bugs@lists.llvm.org, rnk@google.com
Fixed by commit(s)
Attachments testclang.zip (497261 bytes, application/x-zip-compressed)
Blocks
Blocked by
See also
Created attachment 14416
testclang.cpp and testclang.sh

1>------ Build started: Project: testclang, Configuration: Release Win32 ------
1>  Basic Block in function '?clear@ios_base@std@@QAEXH_N@Z' does not have
terminator!
1>  label %entry
1>CL : fatal error : error in backend: Broken function found, compilation
aborted!
1>clang-cl.exe : error : clang frontend command failed with exit code 70 (use -
v to see invocation)
1>  clang version 3.7.0 (trunk)
1>  Target: i686-pc-windows-msvc
1>  Thread model: posix
1>  clang-cl.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.
1>  clang-cl.exe: note: diagnostic msg:
1>  ********************
1>
1>  PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
1>  Preprocessed source(s) and associated run script(s) are located at:
1>  clang-cl.exe: note: diagnostic msg:
C:\Users\zhangv6\AppData\Local\Temp\testclang-412e75.cpp
1>  clang-cl.exe: note: diagnostic msg:
C:\Users\zhangv6\AppData\Local\Temp\testclang-412e75.sh
1>  clang-cl.exe: note: diagnostic msg:
1>
1>  ********************
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The version is : LLVM-3.7.0-r238743-win32.exe
Quuxplusone commented 9 years ago

Attached testclang.zip (497261 bytes, application/x-zip-compressed): testclang.cpp and testclang.sh

Quuxplusone commented 9 years ago

Does the problem go away when you disable C++ exceptions with /EHs-? If so, this is a generally known issue that C++ exceptions are broken.