Skip to content

Allow argument declarations of the same name as the parent non-recursive function or subroutine #204

@acikek

Description

@acikek

This seems like an oversight. Currently, this is considered a syntax error. Since, in non-recursive functions or subroutines, itself cannot be called, there is no reason to disallow this. Here is an example:

! Non-recursive
subroutine example(example) ! Syntax error
  implicit none
  integer :: example
end subroutine example

Metadata

Metadata

Assignees

No one assigned

    Labels

    Clause 15Standard Clause 15: Procedures

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions