[flang-commits] [PATCH] D102653: [flang] Accept OPEN(ACCESS='APPEND') legacy extension even without warnings enabled
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue May 18 11:33:20 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8cd199b85f90: [flang] Accept OPEN(ACCESS='APPEND') legacy extension even without warnings… (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102653/new/
https://reviews.llvm.org/D102653
Files:
flang/lib/Semantics/check-io.cpp
Index: flang/lib/Semantics/check-io.cpp
===================================================================
--- flang/lib/Semantics/check-io.cpp
+++ flang/lib/Semantics/check-io.cpp
@@ -833,10 +833,12 @@
};
auto upper{parser::ToUpperCaseLetters(value)};
if (specValues.at(specKind).count(upper) == 0) {
- if (specKind == IoSpecKind::Access && upper == "APPEND" &&
- context_.languageFeatures().ShouldWarn(
- common::LanguageFeature::OpenAccessAppend)) {
- context_.Say(source, "ACCESS='%s' interpreted as POSITION='%s'"_en_US, value, upper);
+ if (specKind == IoSpecKind::Access && upper == "APPEND") {
+ if (context_.languageFeatures().ShouldWarn(
+ common::LanguageFeature::OpenAccessAppend)) {
+ context_.Say(source, "ACCESS='%s' interpreted as POSITION='%s'"_en_US,
+ value, upper);
+ }
} else {
context_.Say(source, "Invalid %s value '%s'"_err_en_US,
parser::ToUpperCaseLetters(common::EnumToString(specKind)), value);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102653.346229.patch
Type: text/x-patch
Size: 1026 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210518/bf07ad10/attachment.bin>
More information about the flang-commits
mailing list