This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH, Fortran] Parse FINAL procedure declarations


Hi Daniel,

Daniel Kraft wrote:
this is a first patch including ChangeLog for implementing parsing and resolution of Fortran 2003 FINAL procedures; when this is completed, I'll work on actually finalizing expressions.
Some comments:

a) You miss a check whether the finalization procedure is a subroutine. Currently also functions are accepted.

b) The following program is accepted with -std=f95, but it should be rejected:

module m
 type t
   integer :: i
 contains   ! Fortran 2003: contains
 FINAL :: a  ! Fortran 2003: FINAL
 end type t
contains
 function a(x) ! wrong: Function
   type(t) :: x
 end function a
end module m

Tobias


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