[all-commits] [llvm/llvm-project] fffbab: [flang][parser] Better error recovery for misplace...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jul 30 09:44:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fffbabfd4780261942711e3a3676447eba91e877
      https://github.com/llvm/llvm-project/commit/fffbabfd4780261942711e3a3676447eba91e877
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-07-30 (Tue, 30 Jul 2024)

  Changed paths:
    M flang/lib/Parser/executable-parsers.cpp
    M flang/lib/Parser/program-parsers.cpp
    A flang/test/Parser/recovery03.f90

  Log Message:
  -----------
  [flang][parser] Better error recovery for misplaced declaration (#100482)

When a declaration construct appears in the execution part of a block or
subprogram body, report it as such rather than as a misleading syntax
error on the executable statement that it somehow matched the most.



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