I have the following situation:
Module A includes module B. Module A has a submodule that executes a function from module B.
If module A has a private statement, linking is not possible. This seems to be incorrect because the private statement should have an effect only on other modules that use module A, but not on the submodule (which is technically part of module A).
A full example is given onhttps://cloud.martin-diehl.net/index.php/s/Jk5NPWMrJRn5fkM. If someone from PGI has downloaded it, please let me know because I want to disable the share.