This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/42481] generic interface not recognized
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2009 22:39:32 -0000
- Subject: [Bug fortran/42481] generic interface not recognized
- References: <bug-42481-11265@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from anlauf at gmx dot de 2009-12-23 22:39 -------
Note that I personally would declare sub as generic in mod1, e.g.
module mod1
interface sub
module procedure sub
end interface
contains
subroutine sub(x)
real x
end subroutine sub
end module mod1
and remove the corresponding module procedure in mod2, as this resolves
the compilation errors with gfortran and nagfor.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42481