Bug ID: 84346
           Summary: Statement functions should not accept keywords
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot
          Reporter: kargl at gcc dot
  Target Milestone: ---

A statement function always has an implicit interface.
A function with an implicit interface should not accept

program foo
   real :: x, y
   integer :: i, j
   fcn(x,i) = x * i
   y = 42.
   j = 2
   print *, fcn(i=j, x=y)  ! This violates a constraint.
end program foo

Reply via email to