https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64374
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 34855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34855&action=edit gcc5-pr64374.patch Untested fix. Unfortunately I really can't reproduce it now, so can't verify the patch. The testcase in #c0 looks very much broken, lots of undefined results, missing f1 definition, so it really can't link successfully. But I don't get an ICE at all here.