https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #6 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
This case is probably related, apparently the simplification failure
leads to a somewhat misleading error message:
program main
integer(8), parameter :: n=2_8**32+1
character(len=n), parameter :: a1 = repeat('x',n), a2 = repeat('y',n)
character(len=*), parameter :: a3 = a1 // a2
end program main
concat.f90:4:37:
character(len=*), parameter :: a3 = a1 // a2
1
Error: Function ‘a1’ in initialization expression at (1) must be an intrinsic
function