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/35152] Implicit procedure with keyword=argument is accepted



------- Comment #5 from dfranke at gcc dot gnu dot org  2008-03-20 12:15 -------
> I don't know if the code is valid or not

IMO, it is not:

module foo_pr_mod
  use bar_pr_mod, foo_pwrk  => bar_pwrk
end module foo_pr_mod

Subroutine foo_sub(a,pr,b,x,eps,cd,info)
  use foo_pr_mod
  ...
  Call bar_pwrk(pr,p,f,cd,info,work=aux)
end subroutine

The module renames 'bar_pwrk' to 'foo_pwrk'. When the subroutine uses the
module it only sees 'foo_pwrk', not 'bar_pwrk'. Hence, 'bar_pwrk' has an
implicit interface within 'foo_sub'.

IMO, the warning is correct and the code ahould be fixed :)


-- 


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


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