https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123597
--- Comment #8 from Benjamin Schulz <schulz.benjamin at googlemail dot com> --- Hi, i want to thank you that you are now working on this. I had originally submitted it there, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123272 thinking at first, it would be nvptx related, or somehow related to my gpu. No one seemed to take it... But I considered it to be important, as it is triggered in rather simple code for matrix multiplication, and does not lead to an ice but rather to subtle errors, with 10% of the values wrong, so it easily gets unnoticed. Therefore i thought i would email Tobias directly, that someone is taking it up... I tried to patch lower.cc, parser.cc, semantics.cc in the end i came to think it may be in gimple.cc... hm the patch that you say causes the problem changes both parser.cc and semantics.cc.. Perhaps i made the mistake of just patching one file... chatgpt suggested that the error may happen for other constructs. On gpu, one often uses combined constructs like teams distribute parallel for... or loops with tiles... or also unrolling for some loops...
