This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35152] Implicit procedure with keyword=argument is accepted
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2008 12:15:04 -0000
- Subject: [Bug fortran/35152] Implicit procedure with keyword=argument is accepted
- References: <bug-35152-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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