https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69241
--- Comment #26 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37654 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37654&action=edit gcc6-pr69241.patch Well, we shouldn't ICE even on questionable testcases where -Wreturn-type complains on them. Untested patch that ought to fix that.