[all-commits] [llvm/llvm-project] d1ea60: [flang] Detect and report parsing failure (#121349)

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jan 8 13:13:20 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d1ea605ecd3b98c59e37d8e2261fcb5220151f4d
      https://github.com/llvm/llvm-project/commit/d1ea605ecd3b98c59e37d8e2261fcb5220151f4d
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    M flang/lib/Frontend/FrontendAction.cpp
    M flang/lib/Frontend/FrontendActions.cpp
    M flang/test/Integration/debug-local-var-2.f90
    M flang/test/Parser/at-process.f
    A flang/test/Parser/unparseable.f90

  Log Message:
  -----------
  [flang] Detect and report parsing failure (#121349)

The flang-new driver doesn't check for the case of the parser failing to
consume the entire input file. This is of course never an ideal outcome,
and usually signals a need to improve error recovery, but it is better
for the compiler to admit failure rather than to silently proceed with
compilation of what may well be an incomplete parse tree.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list