codee-com / codee-com/open-catalog

[Fortran] NAG compiler requires to define variable before its usage

Open
#92 1 comment 0 reactions 0 assignees View on GitHub
Fortran good first issue new check
Dominant language
Fortran
Stars
106
Forks
12
PR merge metrics
No merged PRs in 30d

Description

NAG compiler requires to define variable before its usage in type declaration section. For example, the following code is not correct:
```fortran
subroutine test(a, n)
implicit none
real(8) :: a(n)
integer :: n
end subroutine test
```
since usage of `n` happens before actual type definition.

The proper code is:
```fortran
subroutine test(a, n)
implicit none
integer :: n
real(8) :: a(n)
end subroutine test
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.