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

IVF and CVF compiler errors - what does it mean?

lklawrie
Beginner
861 Views
Warning: Only rename information from the ONLY qualifiers for this external module will be processed since all entities from the external module have been declared public [DATAHEATBALFANSYS]

Most of our data modules are "PUBLIC" -- this is the only one that is tripping this warning

Linda
0 Kudos
6 Replies
Steven_L_Intel1
Employee
861 Views
If you could provide a small sample, it would be easier to respond. If I had to guess, it might be that you have a USE with ONLY but all of the symbols named have already been made visible through a different USE so the ONLY is ignored other than the rename clauses. What happens if you remove the ONLY (and leave just renames, if you have them)?
0 Kudos
lklawrie
Beginner
861 Views

oh, i hate those. just started appearing so it looks like something other module might have changed things so that this is being USEd. there are no renames.

now, i just have to remember which modules... I will try to create a small sample tomorrow.

Linda
0 Kudos
Steven_L_Intel1
Employee
861 Views
I will say that this warning seems rather pointless. If you (or I) can come up with an example that triggers it, I may be able to convince the developers to turn it off.
0 Kudos
lklawrie
Beginner
861 Views
I will say that this warning seems rather pointless. If you (or I) can come up with an example that triggers it, I may be able to convince the developers to turn it off.

Well, I think i see it, without having to generate an example file.

in the routine.. there is:

USE Datax, ONLY:
USE DataThis, ONLY:


USE DataThis

so, someone slipped a USE total in with a USE ONLY in the same routine.

(I don't think it was me)

Linda
0 Kudos
Steven_L_Intel1
Employee
861 Views
Bingo! That's exactly it. The following source reproduces the warning:

[plain]module mymod
integer x,y,z
end module mymod

program main
use mymod, only: x
use mymod
end[/plain]

I will discuss this with the developers.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
861 Views
I will discuss this with the developers.

For what it's worth, the warning makes sense to me, if only it were formulated in plain language. Along the lines of:

"This ONLY list is spurious because the symbols are visible through another use-association."
0 Kudos
Reply