This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Problem with contained procedures as of 110063
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: fortran at gcc dot gnu dot org, pault at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 21 Jan 2006 20:11:10 +0100
- Subject: Problem with contained procedures as of 110063
Paul,
The following draws an error as of 110063:
- - - - - - - - - - - 8< - - - - - - - - 8< - - - - - - - - -
module aap
private
public s
interface s
module procedure sub,sub1
end interface
contains
subroutine sub1(i)
integer i
real a
call sub(a)
end subroutine sub1
subroutine sub(a)
real a
end subroutine sub
end module aap
- - - - - - - - - - - 8< - - - - - - - - 8< - - - - - - - - -
This seems correct to me (it is accepted by 4.1).
Please explain.
Thanks,
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/