Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29249 Discussions

error #6405: The same named entity from different modules and/or program units cannot be referenced. [ISK]

sarma_amras
New Contributor I
536 Views
Hi,

I am using a module defined with the variables like ISK.
I am trying to use the same in another subroutine and face this error #6405.
I am populating values into the module containing ISK using Namelist.
I didn't declare this varible anywhere else except in the module created and passing it as an argument from the main program and trying to do a comparison in the subroutine.
Please suggest.

Thanks
Kameswara Sarma
0 Kudos
2 Replies
TimP
Honored Contributor III
536 Views
If your question is about hiding module variables selectively, the choices of PRIVATE or ONLY are available.
0 Kudos
Steven_L_Intel1
Employee
536 Views
Can you construct a small example that shows the problem? I can't quite figure it out from your description.
0 Kudos
Reply