https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72714
--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fort...@t-online.de> --- Correct variants, for completeness : $ cat z2.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(2)[3,*]) end $ cat z3.f90 program p integer, allocatable :: z(:)[:,:] allocate (z(2)[1:3,*]) end