This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Minor issue: misleading error message
- From: Arjen Markus <arjen dot markus895 at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 3 Jan 2011 10:12:59 +0100
- Subject: Minor issue: misleading error message
Hello,
the following program produces the message:
"Error: Syntax error in DATA statement at (1)
which is clearly inappropriate as the statement refers to a variable "data".
(The true problem is that the field "result" is missing from the derived type)
It is probably just a minor issue, but I thought I'd report it anyway.
Regards,
Arjen
----
module library
implicit none
type parameters
private
integer :: steps
end type parameters
contains
subroutine set_parameters( data, steps )
type(parameters) :: data
integer, intent(in) :: steps
data%steps = steps
data%result = 0.0
end subroutine set_parameters
end module library