- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think that the following is a bug. It seems that if your "ID" is a member of a structure, then compiler doesn't think that it is an integer.
module
the_moduletype
transfer_descriptorinteger :: file_unitinteger :: transfer_idend
typeend module
---------------------------------------
program id_buguse the_moduleimplicit noneinteger :: tmp_idlogical :: pending_flagtype( transfer_descriptor ) :: txinquire(UNIT=tx%file_unit, ID=tx%transfer_id, PENDING=pending_flag) !*** error here
tmp_id = tx%transfer_id
inquire(UNIT=tx%file_unit, ID=tmp_id, PENDING=pending_flag) !*** no error here
end program id_bug
Here is the error:
Error1 Error: This variable must be of type INTEGER. [ID]S:srcdisk_io_testid_bugid_bug.f9026
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Amusing. Thanks for bringing this to our attention.

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