Misleading diagnostic message wrt components

Arjen Markus arjen.markus@wldelft.nl
Sun Sep 21 12:43:00 GMT 2008


Hello,

I found this misleading diagnostic message:

 In file interval_simple.f90:145

    r%lower = x%lower  + y%lower
   1
Error: Unclassifiable statement at (1)

The function it tries to compile looks like:

function add_i_r( x, y ) result(r)
    type(INTERVAL), intent(in) :: x
    real(kind=wp), intent(in)  :: y
    type(INTERVAL)             :: r

    r%lower = x%lower  + y%lower
    r%upper = x%upper  + y%upper
end function add_i_r

So the y%lower is the culprit, but that is not what the message
tells me.

Gfortran version: 4.3.2 (4.3.2-tdm-1 for MinGW), but this
happens for version 4.2.0 under Cygwin too.

Regards,

Arjen



More information about the Fortran mailing list