Fortran repeat failing with allocatable character

Hello,

it seems that Fortran repeat intrinsic function fails when applied to allocatable characters. Tested with nvfortran 20.7. A minimal reproduction example follows:

program test
character(:), allocatable :: allocatable_string
character(5) :: non_allocatable_string
non_allocatable_string = ‘testa’
allocatable_string = non_allocatable_string
print*, repeat(non_allocatable_string, 2) ! it works
print*, repeat(allocatable_string, 2) ! it does not work
endprogram test

Thanks
Francesco

Thanks for the report Francesco! I was able to replicate the error and have filed a problem report (TPR #29114).

-Mat