https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99765
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-25 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- The standard says: C832 An array with the POINTER or ALLOCATABLE attribute shall have an array-spec that is a deferred-shape-spec-list. so I think real, dimension(10), pointer :: a(:) => null() and real, dimension(10), allocatable :: a(10) are invalid and shall give an error. Note that a(1:2)(1:10) looks like C syntax, a rank 2 array is a(1:2,1:10). The only case for valid fortran is for a being of type CHARACTER, a(1;2) being a slice and (1:10) a substring.