- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have used this function to determine the end of file in Intel Fortran for many years:
if( .not. eof(lno)) ...
Now I am getting an error.
error #6410: This name has not been declared as an array or a function. [EOF]
Has it been removed from Intel Fortran?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have these checks on.
/check:pointer /check:bounds /check:uninit /check:arg_temp_created /check:stack
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additional:
Compiling with Intel® Fortran Compiler Classic 2021.8.0 [Intel(R) 64]...
... warning #7416: Fortran 2018 does not allow this intrinsic procedure. [EOF]
but without standards it compiles ok so I have no clue what is going wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Must be some option. Will try from a raw project and creep up on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can try the sample from the dev guide: https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference/e-to-f/eof.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is an extension, not standard, so the standards warning is valid. Ron gave a pointer to the documentation.
Note that IS_IOSTAT_END that Andrew mention tests an IOSTAT value, you don't pass it a unit number.

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