https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126
--- Comment #24 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Dominique d'Humieres from comment #23) > Adding -Wall to the dg-options let the test succeed (in line with the > gfortran manual, see comment 21): This is enough to make the test pass, but it is not enough to get the correct behavior and it will get broken by other reason. The patch in comment #10 is needed independently of what gfortran chooses.