https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117047
--- Comment #32 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Thanks for the script and the notes. I can now reproduce the crash on my main development box, with e.g. test-bitcast.c It seems to not be writing a vtable ptr to an object; the class's operator new allocates it in the gc-heap and thus records a finalizer. Crash happens attempting to call a vfunc in wrapper_finalizer, due to vtable ptr being null. Am investigating further...