(j3.2006) Ian Harvey complains about F08/0142 (can't have a submodule of module with no separate module procedures)

Bill Long longb
Tue Jan 5 09:10:51 EST 2016

On Jan 4, 2016, at 10:05 PM, Cohen Malcolm <malcolm at nag-j.co.jp> wrote:

> I agree completely with Kurt.
> Separate module procedures were designed to provide the desired 
> functionality, and do provide that functionality, without compromising 
> module integrity.
> Looks like Ian Harvey's compiler does not enforce C1506?

Or, maybe does not even support submodules?

In any event, that constraint does kill his example.  Perhaps it would be helpful to expand the answer a bit, without changing the conclusion.  Ian?s email quotes this explanation from the interp:

"If a module declares no separate module procedure, it cannot
have a useful submodule as such a submodule has nothing to
provide. Its module procedures and variables cannot be
referenced by any program.?

If the second sentence were expanded to  ?Because binding labels are not permitted on module procedures without interfaces in the ancestor module, its module procedures and variables cannot be referenced by any program.?,  it would be clearer that there is no back door available.


> Cheers,
> -- 
> ........................Malcolm Cohen, Nihon NAG, Tokyo. 
> _______________________________________________
> J3 mailing list
> J3 at mailman.j3-fortran.org
> http://mailman.j3-fortran.org/mailman/listinfo/j3

Bill Long                                                                       longb at cray.com
Fortran Technical Support  &                                  voice:  651-605-9024
Bioinformatics Software Development                     fax:  651-605-9142
Cray Inc./ Cray Plaza, Suite 210/ 380 Jackson St./ St. Paul, MN 55101

More information about the J3 mailing list