[all-commits] [llvm/llvm-project] 1eb994: [flang] Catch more bad DATA statement objects

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 27 16:10:21 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1eb9948f02560912c67757e18d105d18609935ce
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M flang/lib/Semantics/check-data.cpp
    M flang/test/Semantics/data03.f90

  Log Message:
  [flang] Catch more bad DATA statement objects

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.

Differential Revision: https://reviews.llvm.org/D146580

More information about the All-commits mailing list