diff options
author | Peter Klausler <pklausler@nvidia.com> | 2022-03-24 12:59:04 -0700 |
---|---|---|
committer | Peter Klausler <pklausler@nvidia.com> | 2022-03-25 18:24:50 -0700 |
commit | 435641bc3d8e7cd9acb6efeacd32962e2cc167cc (patch) | |
tree | b847c1fee2486775a7d381326e08b2f684567065 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5576579c865d481a4f32fe3d183e32d8807432e4 (diff) | |
download | llvm-435641bc3d8e7cd9acb6efeacd32962e2cc167cc.zip llvm-435641bc3d8e7cd9acb6efeacd32962e2cc167cc.tar.gz llvm-435641bc3d8e7cd9acb6efeacd32962e2cc167cc.tar.bz2 |
[flang] Catch bad OPEN(STATUS=) cases
STATUS='NEW' and 'REPLACE' require FILE= to be present.
STATUS='SCRATCH' may not appear with FILE=.
These errors are caught at compilation time when constant character
strings are used in an OPEN statement, but the runtime needs
to enforce them as well to catch errors in OPEN statements
with character variables and expressions.
Differential Revision: https://reviews.llvm.org/D122509
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions