This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Misleading diagnostic message wrt components


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]