https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63514
--- Comment #3 from Joost VandeVondele <Joost.VandeVondele at mat dot ethz.ch> --- (In reply to Richard Biener from comment #2) > The fortran frontend must do sth wrong here - it seems to mark the function > pure itself and either fold or the FE even does the optimization (look at > the .original dump). yes, it certainly is a FE issue.