Hi,
the code
subroutine gfcbug86 ()
implicit none
integer :: i1(10), i2(10)
print *, count (i1 /= i2)
end subroutine gfcbug86
gives a spurious warning when compiled with -Wconversion
with gfortran 4.3.x up to trunk:
gfcbug86.f90:4.18:
print *, count (i1 /= i2)
1
Warning: Conversion from LOGICAL(4) to LOGICAL(1) at (1)
--
Summary: Spurious warnings with -Wconversion and COUNT()
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40287