codee-com / codee-com/open-catalog
[Fortran] NAG compiler requires to define variable before its usage
Open
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.