I have a very simple 32 bit Xcode project setup running under OSX 10.9.5, Xcode 5.2
Main project - compiled by Intel C++ calling constructor of a class in a subproject. Subproject is a static library, compiled by llvm clang++.
In my main project (Intel C++) I have:
main.cpp:
#include "test.h"
int main(int argc, const char * argv[])
{
test t;
return 0;
}
In my subproject (LLVM Clang++) I have:
test.h:
class test {
public:
test();
};
test.cpp:
#include "test.h"
test::test()
{
try {
throw 1;
} catch (...) {
}
}
Exception, thrown in test::test() is not caught, causing abnormal termination.
When I change compiler of my main project to LLVM Clang++, the exception is caught as expected.
I've attached my test project.