This patch fixes the error with assigning std::rethrow_if_nested() to a function pointer. The fix is similar to what is done for std::throw_with_nested().
The following test case demonstrates the issue.
#include <exception> int main() { struct A {}; void (*p)(const A&) = &std::rethrow_if_nested<A>; }