https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116907
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Sam James from comment #2) > Works with -save-temps :( Try with `--param ggc-min-expand=1 --param ggc-min-heapsize=1` Maybe it is trying to output something which has been freed.