https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95374
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |accepts-invalid, | |ice-on-invalid-code Priority|P3 |P4 Ever confirmed|0 |1 Last reconfirmed| |2020-06-05 Status|UNCONFIRMED |NEW --- Comment #1 from anlauf at gcc dot gnu.org --- Example z2.f90 is actually invalid code that is not rejected, since the rhs takes element a(0) which is out-of-bounds, has size 1, whereas the lhs has size 0. For the same reason, z1.f90 is invalid code since it accesses a(0).