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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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

Steve

Steve

Accedere per lasciare un commento.