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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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

Steve

Steve - Intel Developer Support

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya