(j3.2006) multiple definitions of separate module procedures

Reinhold Bader Reinhold.Bader
Tue Dec 22 12:32:42 EST 2009


Hello Bill,

N1791 covers  this in 12.6.2.5 para 2 (though indeed not in 16).

Regards
Reinhold


Bill Long schrieb:
> 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
> 
> 
> 




More information about the J3 mailing list