https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102532

G. Steinmetz <gs...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code

--- Comment #1 from G. Steinmetz <gs...@t-online.de> ---

With an assignment :


$ cat z3.f90
program p
   character(:), allocatable :: x[:]
   character(:), allocatable :: y[:]
   y = x(:)(2:)
end


$ gfortran-12-20210926 -c z3.f90 -fcoarray=lib 
z3.f90:4:8:

    4 |    y = x(:)(2:)
      |        1
Error: Rank mismatch in array reference at (1) (1/0)

Reply via email to