renaming variables from modules

renaming variables from modules

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


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?


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today