https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109207
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-03-20 Ever confirmed|0 |1 Status|UNCONFIRMED |WAITING --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Initially unit_cache[0..2] is not NULL. Yes they are by definition. That is: ``` #define CACHE_SIZE 3 static gfc_unit *unit_cache[CACHE_SIZE]; ... gfc_unit *unit_root; ``` Since they are not in the auto scope, they are static scope and initialized to 0 by default. Your fix does not change anything really.