https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121316
--- Comment #5 from Liam Powell <liam at liampwll dot com> --- The Use_Foo'Image issue has been fixed, I haven't done a bisection to figure out when. The primary issue here is in Expand_N_Loop_Statement. When an iterator filter is present, the loop is rewritten to have its statements wrapped in an if statement, but later on the old statements are used. I've attached a patch to fix this. This is a patch on master but I've tested the changes on the gcc-15 branch.
