- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should work. Please submit a bug report through Intel Premier Support.
Steve
Steve

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page