This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37427] New: Passed-object dummy argument should be polymorphic
- From: "domob at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2008 15:12:45 -0000
- Subject: [Bug fortran/37427] New: Passed-object dummy argument should be polymorphic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
As polymorphic entities are not implemented in gfortran, the handling of
passed-object dummy arguments allows (or requires) them to be declared
non-polymorphic (TYPE(t)) while they should in fact be CLASS(t):
MODULE m
TYPE :: t
CONTAINS
PROCEDURE :: proc
END TYPE t
CONTAINS
SUBROUTINE proc (me)
TYPE(t) :: me ! should be CLASS(t) :: me
END SUBROUTINE proc
END MODULE m
--
Summary: Passed-object dummy argument should be polymorphic
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: domob at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37427