In the following program, the first executable statement is in error because the right hand side expression is array valued, and the variable on the left is scalar.
Compiler versions 8.90 and 8.92 do not detect the error at compile time or, with /check, at run time.
program xm
implicit none
integer :: ix(5) = [5, 4, 8, 2, 7], ir
!
ir = minloc(ix) ! Error: return value is array, IR is scalar
print *,ir
print *,minloc(ix)
end program