aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-08-21 10:36:13 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-08-21 10:43:19 +0100
commit03cb6904d1ab6de1f42d06bcf2988bf7b3e7709a (patch)
tree0d50b057bde9c0963bbf31a64bf105e42fd40e04 /gcc/fold-const.cc
parentd5dfba19aee783a6ba90fdba1993d576c7ec310b (diff)
downloadgcc-03cb6904d1ab6de1f42d06bcf2988bf7b3e7709a.zip
gcc-03cb6904d1ab6de1f42d06bcf2988bf7b3e7709a.tar.gz
gcc-03cb6904d1ab6de1f42d06bcf2988bf7b3e7709a.tar.bz2
libstdc++: Remove reliance on unspecified behaviour in std::rethrow_if_nested test
This test case calls std::set_terminate while there is an active exception. Since LWG 2111 it is unspecified which terminate handler is used when std::nested_exception::rethrow_nested() calls std::terminate. With libsupc++ the global handler changed by std::set_terminate is used, but libc++abi uses the active exception's handler (the one that was current when the exception was first thrown). Adjust the test case so that it works with either implementation choice. So that the process doesn't exit cleanly if std::terminate happens sooner than expected, use a global variable to control when the "clean terminate" behaviour happens. libstdc++-v3/ChangeLog: * testsuite/18_support/nested_exception/rethrow_if_nested-term.cc: Call std::set_terminate before throwing the nested exception.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions