[llvm-bugs] [Bug 26329] New: clang crash: A single unwind edge may only enter one EH pad
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 26 13:58:29 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26329
Bug ID: 26329
Summary: clang crash: A single unwind edge may only enter one
EH pad
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: llvm at alex.lanin.de
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
call: clang -v -target i686-pc-windows-msvc -O0 -fexceptions crash.cpp
probably by far not minimal input, but I couldn't get it any smaller:
#include <typeinfo>
#include <string>
void reportError( const std::type_info& );
void couldThrow();
void handleException()
{
try
{
couldThrow();
}
catch ( std::exception &e )
{
std::string notBaseType;
reportError( typeid(e) );
}
}
output:
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
"C:\\Git\\build\\RelWithDebInfo\\bin\\clang.exe" -cc1 -triple
i686-pc-windows-msvc18.0.0 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -main-file-name crash.cpp
-mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno
-masm-verbose -mconstructor-aliases -target-cpu pentium4 -v -dwarf-column-info
-debugger-tuning=gdb -resource-dir
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0" -internal-isystem
"C:\\Git\\build\\RelWithDebInfo\\bin\\..\\lib\\clang\\3.9.0\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\include" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.1\\include\\winrt" -O0 -fdeprecated-macro -fdebug-compilation-dir
"Z:\\" -ferror-limit 19 -fmessage-length 0 -fms-extensions -fms-compatibility
-fms-compatibility-version=18 -std=c++11 -fno-threadsafe-statics
-fdelayed-template-parsing -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o
"C:\\Programme\\di_tools_cygwin_3\\tmp\\crash-19a4bb.o" -x c++ crash.cpp
clang -cc1 version 3.9.0 based upon LLVM 3.9.0svn default target
i686-pc-windows-msvc
#include "..." search starts here:
#include <...> search starts here:
C:\Git\build\RelWithDebInfo\bin\..\lib\clang\3.9.0\include
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
C:\Program Files (x86)\Windows Kits\8.1\include\shared
C:\Program Files (x86)\Windows Kits\8.1\include\um
C:\Program Files (x86)\Windows Kits\8.1\include\winrt
End of search list.
A single unwind edge may only enter one EH pad
%4 = invoke i8* @__RTtypeid(i8* %3)
to label %invoke.cont1 unwind label %ehcleanup
fatal error: error in backend: Broken function found, compilation aborted!
clang.exe: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.9.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Git\build\RelWithDebInfo\bin
--
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/20160126/25d375af/attachment-0001.html>
More information about the llvm-bugs
mailing list