[all-commits] [llvm/llvm-project] 6a7044: [flang] Improve OpenACC SELF clause parser (#135883)
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Apr 18 12:51:21 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6a7044a7b88a2e5e4ea7f3f9c128b4fbb33233f8
https://github.com/llvm/llvm-project/commit/6a7044a7b88a2e5e4ea7f3f9c128b4fbb33233f8
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2025-04-18 (Fri, 18 Apr 2025)
Changed paths:
M flang/lib/Parser/openacc-parsers.cpp
A flang/test/Semantics/OpenACC/bug135810-1.f90
A flang/test/Semantics/OpenACC/bug135810-2.f90
Log Message:
-----------
[flang] Improve OpenACC SELF clause parser (#135883)
The current parser can fail on "self(x * 2)" by recognizing just "x" as
a one-element list of object names and then failing at a higher level
because it never reached the right parenthesis. Add lookahead checks and
error recovery.
Fixes https://github.com/llvm/llvm-project/issues/135810.
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