https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39230
--- Comment #7 from janus at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #1) > I think what you want is some -fcheck=pointer option (I think there is a PR > about his). That option would initialize pointer with some bogus value, e.g. -fcheck=pointer is available since gfortran 4.5, but even with gfortran 8 it still does not complain about the use of an undefined pointer in comment 0.