https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82389
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 42283 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42283&action=edit gcc8-pr82389-2.patch Untested patch to avoid UB in ref->offset + ref->size computations.