https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119778
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Slightly cleaned up testcase: struct jmp_buf { long l[16]; }; extern "C" void setjmp (jmp_buf *); struct S { void foo () { bar (); } virtual char bar () { return 0; } }; void baz (); jmp_buf *a; void qux (bool x, S *y) { if (x) setjmp (a); y->foo (); baz (); }