Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Premature analysis of open statement

$
0
0

Here's a silly little problem I don't believe I've reported before, but which probably ought to be fixed.  The 14.0.2 and earlier compilers all complain about the following code

program main
open(newunit=n,status='replace',file='foo')
end program

reporting

intel-bug-20121024.f90(19): error #8414: If NEWUNIT appears in OPEN statement either FILE or STATUS (with value SCRATCH) specifiers must appear.   [STATUS]
open(newunit=n,status='replace',file='foo')
---------------^

Clearly the compiler is not completely parsing the OPEN statement before checking the constraints for NEWUNIT.  I see nothing in the standard that requires a particular order of the indentifiers.


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>