https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91872
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
And indeed the RTL expansion ICE points to the very same issue via
context = decl_function_context (exp);
gcc_assert (!exp
...
|| context == current_function_decl
