$ cat foo.f90 logical l(2) if (l) call abort end $ gfortran foo.f90 In file foo.f90:2
if (l) call abort 1 Error: ELSE IF clause at (1) requires a scalar LOGICAL expression -- Summary: Slightly wrong error message for IF statement Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: fxcoudert at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29454