https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77393
--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 39577 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39577&action=edit Patch for testing, fixes comment #2? This patch for testing. I have tested on x86_64-unknown-freebsd12.0 which also exhibited the issue with an invalid memory reference.