https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78351
--- Comment #22 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 44837 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44837&action=edit Preliminary Patch The attached patch appears to fix this. I am thinking about not doing the check if -std=f95,f2003,f2008. If performance is not a big issue, we can leave it as is. The braces around the new block of code gets rid of a bogus warning about *p not being initialized.