(j3.2006) multiple definitions of separate module procedures

Bill Long longb
Tue Dec 22 12:00:53 EST 2009


Another test case:

module m
   interface
      module subroutine xyz()
      end module
   end interface
end module

submodule (m) subm
contains
     module subroutine xyz()
     end subroutine
end submodule

submodule (m) subm_2
contains
     module subroutine xyz()
     end subroutine
end submodule


This is clearly ambiguous [use m; call xyz; end]  since the subroutine 
xyz has ended up defined twice.  Which words in 16 cover this case?

Cheers,
Bill



-- 
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