https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85599
--- Comment #35 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > gfc_warning(OPT_Wsurprising, "Impure function %qs at %L may not be > evaluated", ...) I am perfectly happy with the short-circuit evaluation and I don't want any warning when I use -Wall.