[patch,fortran,committed] Changed error message from "ELSE IF clause" to "IF clause" (PR29454)

Bernhard Fischer rep.nop@aon.at
Fri Nov 10 22:25:00 GMT 2006


On Fri, Nov 10, 2006 at 07:16:04PM +0100, Tobias Burnus wrote:
>Commit as obvious (it is a kind of typo):
>
>Current result:
>test.f90:2:
>  if (l) then
>     1
>Error: ELSE IF clause at (1) requires a scalar LOGICAL expression
>
>New result:
>test.f90:2:
>  if (l) then
>     1
>Error: IF clause at (1) requires a scalar LOGICAL expression
>
>Using IF clause for "ELSE IF" is also correct, the other round it is
>misleading.
>
>Committed to the trunk after building and regression testing
>(check-gfortran only).
>Does it make sense to check this also into the GCC 4.2 branch or not?

Alternatively you could have used IF/ELSE IF like we have for
WHERE/ELSEWHERE, fwiw :)

I tend to think that it makes sense to apply such small changes to
4.2 too to keep the two in sync as much as possible. Not my call,
though.



More information about the Fortran mailing list