https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79936
--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- After spending some more time debugging this I don't think it's a bug in the warning after all. The ICE comes and goes with different arguments to -Walloc-size-larger-than. It's as if the block the pointer points to was getting deallocated accidentally.