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

            Bug ID: 98016
           Summary: Host association problem
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Discussed on c.l.f. today, the following value from host association is falsely
rejected by gfortran, persistent since at least v4.8.5:
program p
  real :: y(3)
  n=3
  y = func(0.)
  stop
contains
  function func(x) result (y)
    real y(n)
    y=x
  end function func
end program p

Rejected with message:
8.11:

    real y(n)
           1
Error: Variable 'n' cannot appear in the expression at (1)

Reply via email to