https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93088
Roman Zhuykov <zhroma at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zhroma at gcc dot gnu.org --- Comment #4 from Roman Zhuykov <zhroma at gcc dot gnu.org> --- That's great this was finally catched on trunk! Noticed it probably a year ago, with my modulo-sched changes g++.dg/pr78088.C compilation runs into that infinite loop. And yes, my local solution was to organize a "regset visited = ..." to prevent visiting registers again. Now will continue with applying Jakub's solution. Although no failing example exist, IMO we should backport this into 8 and 9 brances.