Commit Message

Since April, gfortran no longer marks module procedures/variables as
TREE_PUBLIC, if they are marked as PRIVATE. (-> improved optimization,
reduced file size)
However, as this PR shows, for "PRIVATE" instead of "PRIVATE :: symbol"
this didn't work, which is addressed by the attached patch.
I only included a test case for module variables; for module procedures,
one runs into PR54224.
Build and regtested on x86-64-linux.
OK for the trunk?
Tobias