https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47386
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |12.2.0 --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Re-confirmed with GCC 12 and trunk. We diagnose a use of w.dim[1].ubound conditional on ubound.1 > 0 && ll == 0. I believe we're jump-threading if (ll) around the T = 0 stmt and then mixing up paths. -fno-thread-jumps fixes the thing.