1>D:\temp\Fallo_compilador3\restricciones.f90(27): error #7994: A use associated object that has the PROTECTED attribute shall not appear as a target in a pointer-assignment-stmt. [FI]
The mentioned error is obtained with the following piece of code in Intel Parallel Studio XE 2018 Update 2. I also include the code and the compilation results attached. Observe that it is possible to point from the module, but it is not possible from the submodule.
Looks like a compiler bug, submit at OSC. It's yet another in connection with SUBMODULEs and entities of PROTECTED attribute with HOST association.
Intel fixed the 2 cases (one of which was yours) but their feature validation test suite likely has a gap when it comes to POINTER attribute:
Hope Intel team is reading this and will do more than treat this as a bug report, rather do a review of their validation cases and look to catch issues before customers encounter them.
Thank you fan.
It seems that, at least concerning submodules, Intel Fortran is far from supporting them properly.
This is a bit discouraging because the Fortran standard is quite clear about the rules.