[PATCH] D78424: [flang] Added Semantic Checks for 2 Data constraints and fixed the semantic errors in 3 test cases
Tim Keith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 15 07:34:08 PDT 2020
tskeith added inline comments.
================
Comment at: flang/lib/Semantics/check-data.cpp:73
+ "Rightmost data object pointer '%s' must not be subscripted"_err_en_US,
+ lastSymbol.name().ToString());
+ }
----------------
Do you need to continue after an error is reported or can you just return false? The latter would simplify the code.
================
Comment at: flang/lib/Semantics/check-data.cpp:107
+ DataVarChecker subscriptChecker{context_, source_};
+ subscriptChecker.RestrictPointer();
return std::visit(
----------------
Why do you need a new DataVarChecker here rather than continuing to use the existing one?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78424/new/
https://reviews.llvm.org/D78424
More information about the llvm-commits
mailing list