The following code is invalid code but it is valid F95 code:
subroutine a(p)
  type t
    integer :: t1
  end type
  type(t) :: p
  p%t1 = 42
end subroutine
------
lahey's fortran front-end gives:
FATAL -- Derived-type dummy argument must be accessed by use or host
association or have the
SEQUENCE property (see "SEQUENCE Statement" in your Fortran 90 language
reference).


-- 
           Summary: Accepts invalid code for Fortran 90
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25685


Reply via email to