https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78033
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org ---
Reduced testcase.
function f(n, x)
integer, intent(in) :: n
complex, intent(in) :: x(1:n)
real :: f
f = g([real(x(1:n)), aimag(x(1:n))])
end function f
If the array sections are removed in favor of the whole array,
the code compiles.
