This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Procedure pointers not private to modules
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Andrew Benson <abenson at its dot caltech dot edu>
- Cc: gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 8 Apr 2012 23:35:05 +0200
- Subject: Re: Procedure pointers not private to modules
- References: <2868699.B2RSvNQREe@ajblaptop2011>
Hi Andrew,
> The following code won't compile with the latest gfortran. I think it's valid
> code as the two procedure pointers should be private to their respective
> modules - unless I'm misunderstanding this.
>
> [...]
>
> If anyone can confirm that it's valid code I'll go ahead and file a PR.
yes, I'm pretty sure it's valid code. Please file a PR. (The program
also fails with 4.6 and 4.7)
Note: When replacing the procedure pointers by data pointers, the
program is accepted (as one would expect).
Cheers,
Janus