https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99716
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-23 Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Confirmed. Loop body is: fp_7 = fopen ("/tmp/test", "w"); __builtin_fwrite ("hello", 1, 5, fp_7); fclose (fp_7); i_10 = i_1 + 1; We're not transitioning fp_7 from "unchecked" back to "opened" at the 2nd fopen. Also, I think we're missing a warning about "fp" possibly being NULL, for the case where the fopen fails.