Unwind edges out of a funclet pad must have the same unwind dest
%10 = cleanuppad within none []
cleanupret from %21 unwind to caller
cleanupret from %10 unwind label %ehcleanup5
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.8.0 (branches/release_38)
Target: x86_64-pc-windows-msvc
Thread model: posix
Extended Description
The command and error message:
C:\temp>clang++ -c -O2 -fexceptions clang_bug.cpp
Unwind edges out of a funclet pad must have the same unwind dest %10 = cleanuppad within none [] cleanupret from %21 unwind to caller cleanupret from %10 unwind label %ehcleanup5 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.8.0 (branches/release_38) Target: x86_64-pc-windows-msvc Thread model: posix