https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106603
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2024-08-18 Status|UNCONFIRMED |WAITING Keywords| |wrong-code Known to fail| |12.3.0, 7.5.0 Priority|P3 |P4 Known to work| |13.3.0, 14.2.0, 15.0 --- Comment #1 from anlauf at gcc dot gnu.org --- While this error goes back to at least 7.5.0 and is present in 12.3.0, it appears fixed on 13-branch and newer. Can you please verify that newer gfortran releases fix your problem?