https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69234
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- In that case, I guess the questions are: 1) does -fno-delete-null-pointer-checks cure the crash? 2) do any of the functions/methods defined in the problematic file have nonnull attribute? 3) can you try to compile it with -fsanitize=undefined and see if errors are reported on it?