https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99858
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- As requested by https://gcc.gnu.org/bugs/ please provide code, not just a URL. Reduced: extern "C" int printf(const char*, ...); int main() try { try { throw (void*)1; } catch (void*& ptr) { printf("%p %p\n", ptr, &ptr); ptr = nullptr; throw; } } catch (void*& ptr) { printf("%p %p\n", ptr, &ptr); } Not a regression. I'll take a look at the EH code.