https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68977
--- Comment #3 from Nathan Sidwell <nathan at gcc dot gnu.org> --- As the code is ill-formed, and IIUC the error only happens if we;ve seen an error, I suggest push_gimplify_context (!seen_error ()); No point making the compiler work harder than necesary in the usual case?