Skip to content

Function Statement Scope in FamixEsopeResolver #256

@uNouss

Description

@uNouss
      program demo
      implicit integer*8(f)
      fct(n) = loc(n)
      n = 10
      print *, '@(n) in demo: ' , loc(n)
      print *, '@(n) in fct : ' , fct(n)
      print *, (loc(n) .eq. fct(n))
      end

The first n (parameter) in line 3 is in the scope of fct function statement.
The second n in line 3 is in the scope of fct function statement. It is an access of the first n in line 3. Currently we put this n in demo scope which is not the case.

from line 4 to the end, n is in the scope of demo program.

Note: the nin fct and n in demo are implicitly typed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions