- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please help me with this err
error #6401: The attributes of this name conflict with those made accessible by a USE statement.
I am getting this err when I try accessing a variable declared in MODULE ZF5 with the EQUIVALENCE statement.
Regards
Kameswara Sarma
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
error #6401: The attributes of this name conflict with those made accessible by a USE statement.
I am getting this err when I try accessing a variable declared in MODULE ZF5 with the EQUIVALENCE statement.
We have had problems in the past with ifort being unwilling to diagnose extensions beyond Fortran standard which aren't accepted by other compilers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're not using derived types, so SEQUENCE is not applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're not using derived types, so SEQUENCE is not applicable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
30 The local identifier of an entity made accessible by a USE statement shall not appear in any other
31 nonexecutable statement that would cause any attribute (5.1.2) of the entity to be specified in the
32 scoping unit that contains the USE statement, except that it may appear in a PUBLIC or PRIVATE
33 statement in the scoping unit of a module and it may be given the ASYNCHRONOUS or VOLATILE
34 attribute.
The text I cite above doesn't cover EQUIVALENCE, since that is not an attribute. However, there is this:
C585 (R556) The name of an equivalence-object shall not be a name made accessible by use association.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're not using derived types, so SEQUENCE is not applicable.
Steve...I tried with both X(50) & A(50) included in the module statement as suggested.
But still the error is persisting with both the variables used.
error #6401: The attributes of this name conflict with those made accessible by a USE statement.
error #6401: The attributes of this name conflict with those made accessible by a USE statement.
I guess we cannot use equivalence keyword with the variables used in module statement.
Please suggest.
Kameswara Sarma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have had problems in the past with ifort being unwilling to diagnose extensions beyond Fortran standard which aren't accepted by other compilers.
Tim ... can you please elaborate on the use of what you have suggested? Sarma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim's comments on SEQUENCE don't apply to your program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tim's comments on SEQUENCE don't apply to your program.
I still have the Equivalence in the main program. But the variable used with Equivalence is also present in MODULE.
Can I use the Equivalence now. I still face the error. Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You cannot have the EQUIVALENCE in the main program if any of the variables listed are module variables. If you are still having problems, please show us the new code.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page