Skip to content

Error message for dummy procedure argument. #200

Open
@caguerra

Description

@caguerra

In the following module example, declaring implicit none to detect implicit types for variables like "x" generates the following error message for the dummy procedure f: "No matching declaration found for argument "f"". Also, if the type declaration of "x" is uncommented then the warning message "Variable "x" masks variable in parent scope" appears, for variable "x" in the interface.

module test

    implicit none 

    contains

        subroutine foo(f)

            interface
                function f(x)
                    real, intent(in) :: x
                    real :: f
                end function
            end interface
            !real :: x

            x = 1.
            print*, f(x)

        end subroutine

end module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions