Author: James Van BuskirkJames Van Buskirk
Date: May 13, 2008 16:15
gfortran documents the intrinsic extension functions AND, OR, and
XOR. However, the documentation gives the impression that it
permits mixed-mode operations between INTEGER and LOGICAL types.
Also it doesn't emphasize that the functions are not elemental.
C:\gfortran\test\intrinsics>type logical1.f90
program L
write(*,*) and(3_1,[1,2,3,4])
write(*,*) and(.TRUE._1, 1_1)
end program L
C:\gfortran\test\intrinsics>gfortran logical1.f90 -ological1
logical1.f90:2.22:
write(*,*) and(3_1,[1,2,3,4])
1
Error: 'j' argument of 'and' intrinsic at (1) must be a scalar
logical1.f90:3.27:
write(*,*) and(.TRUE._1, 1_1)
1
Error: 'i' and 'j' arguments of 'and' intrinsic at (1) must have the same
type
|