id summary reporter owner description type status milestone component version severity resolution keywords cc 9796 std::system_error cannot be catched after is rethrown with boost::rethrow_exception() anonymous Emil Dotchevski "boost::rethrow_exception() loses information about the system_error exception type. See the following example code, which when compiled with g++ --std=c++11, displays ''exception caught'' instead of ''system error caught'': {{{ #include #include #include void do_something() { try { // let's assume the following exception is thrown inside some // system library function... throw std::system_error(EDOM, std::system_category()); } catch (...) { boost::rethrow_exception(boost::current_exception()); } } int main() { try { do_something(); } catch (const std::system_error & ex) { std::cout << ""system error caught\n""; } catch (const std::exception & ex) { std::cerr << ""exception caught\n""; } return 0; } }}} " Bugs closed To Be Determined exception Boost 1.54.0 Problem invalid