Minimized test case: https://github.com/AndrejMitrovic/temporary/blob/master/exception_bug/cpp.rar If you uncomment the exception handler, then the exception is caught. Otherwise nothing is shown to stdout.