This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch more bad DATA statement objects
ClosedPublic

Authored by klausler on Mar 21 2023, 3:11 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Mar 21 2023, 3:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 3:11 PM
klausler requested review of this revision.Mar 21 2023, 3:11 PM
PeteSteinfeld accepted this revision.Mar 21 2023, 5:04 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 21 2023, 5:04 PM
This revision was automatically updated to reflect the committed changes.