Hi,
consider the following source file test.cpp
#include <stdexcept>
int main() {
throw std::runtime_error("oops!");
return 0;
}
~> g++ -o test test.cpp
~> ./test
terminate called after throwing an instance of 'std::runtime_error'
what(): oops!
zsh: abort ./test
~> clang++ -o test test.cpp
~> ./test
zsh: abort ./test
How would I make clang++ generate code like g++ here, that would print the what() of the uncaught exception I mean?
Thanks,
Luc Bourhis