https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80913
--- Comment #7 from Nathan Sidwell <nathan at gcc dot gnu.org> --- It doesn't appear to be the stathack patch at fault here. I still get the infinite loop with my reduced testcase when I revert it. (Which is good, because I can't see how that patch could cause this behaviour.) I think it was my do_pushdecl change that didn't include another change I had thought was unrelated.