This is the mail archive of the gcc-bugs@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]

[Bug fortran/42481] generic interface not recognized



------- 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


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