https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77719
--- Comment #6 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- (In reply to kugan from comment #5) > Sent a patch to fix this at > https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01760.html. Thanks, add this line before the first IF statement to silence the warnings: INTEGER :: isp,spdim,jsp,nsp