renaming variables from modules

renaming variables from modules

Hi!
I have trouble compiling code that renames module variables inside another module. The following code works fine with version 7.0 (and in fact with other F90 compilers):
-------------
module mod1
real :: b=3.
end module

module mod2
use mod1,e=>b
real :: b=5.
end module

program test
use mod2
implicit none

print*,b,e
stop
end
--------------

Version 7.1 complains that more than one entity with that name (b) is accessible - and that an unknown variable has not been given a type...

Should something like that work or is there a rule that I'm not aware of?

Thanks!
Daniel

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

It should work. Please submit a bug report through Intel Premier Support.

Steve

Steve

Connectez-vous pour laisser un commentaire.