(Split off from PR 31154.) The following is accepted but invalid (without using "IMPORT t"):
module x implicit none type t integer :: i end type t interface type(t) function bar() end function end interface end -- Summary: User-defined type as function result in an interface: Accepts invalid Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33334