Static Analysis Problem Type Reference
A FORTRAN OUT parameter should not be read.
Marking a FORTRAN parameter as OUT indicates the intention that this argument should only be used to return a value, not to receive a value. FORTRAN OUT parameters are treated like uninitialized variables.
|
ID |
Code Location |
Description |
|---|---|---|
|
1 |
Uninitialized read |
The place where the OUT parameter was read |
subroutine IHaveOutArgument(i)
integer, intent(out) :: i
i = i+1
! argument "i" is INTENT(OUT) dummy argument, but it is used before set
print *,i
end
integer :: j
call IHaveOutArgument(j)
print *,j
end