https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80304
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|diagnostic |wrong-code Summary|Warn about variable |[7 Regression] Wrong result |redefinition in |with do concurrent |do-concurrent | Severity|enhancement |normal --- Comment #11 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Chinoune from comment #10) > 1- Why 'b' has been calculated correctly while 'a' hasn't ?! .the only > difference between the two functions is ( +1. ) The behavior is undefined, this may work, or it may not. > 2- I attached a new modified test and it fails. OK... this one is indeed a wrong-code bug. Setting regression marker and adding wrong-code bug again. I suspect a middle end problem, let's see if I can also make this into a C test case.