[flang-commits] [PATCH] D146580: [flang] Catch more bad DATA statement objects
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Mar 21 15:11:41 PDT 2023
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
The data statement variable checker is missing some cases, like expressions
that are not variables. Run the checker first to enjoy its very specific
error messages, but when it finds no problems, still apply a general
check that an expression is a "variable" and also not a constant expression
at the top level as a backstop.
https://reviews.llvm.org/D146580
Files:
flang/lib/Semantics/check-data.cpp
flang/test/Semantics/data03.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146580.507150.patch
Type: text/x-patch
Size: 3819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230321/cc7a6135/attachment-0001.bin>
More information about the flang-commits
mailing list