[all-commits] [llvm/llvm-project] 619b5b: [flang] Improve error recovery for bad/missing con...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Oct 29 13:26:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 619b5bfc8dfa90fff327956cc8cf5bb9d4029bab
      https://github.com/llvm/llvm-project/commit/619b5bfc8dfa90fff327956cc8cf5bb9d4029bab
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-29 (Sat, 29 Oct 2022)

  Changed paths:
    M flang/lib/Parser/Fortran-parsers.cpp
    M flang/lib/Parser/executable-parsers.cpp
    M flang/lib/Parser/expr-parsers.cpp
    M flang/lib/Parser/io-parsers.cpp
    M flang/lib/Parser/program-parsers.cpp
    M flang/lib/Parser/stmt-parser.h

  Log Message:
  -----------
  [flang] Improve error recovery for bad/missing construct END statements

When a multi-statement construct should end with a particular END statement
like "END SELECT", and that construct's END statement is missing or
unrecognizable, the error recovery productions should not misinterpret
a program unit END statement that follows and consume it as a misspelled
construct END statement. Doing so leads to cascading errors or a failed parse.

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




More information about the All-commits mailing list