[all-commits] [llvm/llvm-project] d3e5c2: [flang] Handle preprocessor macro expansion edge c...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Nov 30 13:23:31 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d3e5c20ab846303874a2a25e5877c72271fc798b
https://github.com/llvm/llvm-project/commit/d3e5c20ab846303874a2a25e5877c72271fc798b
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-11-30 (Thu, 30 Nov 2023)
Changed paths:
M flang/lib/Parser/preprocessor.cpp
M flang/lib/Parser/preprocessor.h
A flang/test/Preprocessing/unclosed-FLM.F90
Log Message:
-----------
[flang] Handle preprocessor macro expansion edge case (#73835)
When a reference to a function-like macro begins during the rescanning
of the expansion of another macro but is not completed by the end of
that expansion, it is necessary to abort that rescanning of that
expansion and try again when more tokens can be acquired. (See the new
unclosed-FLM.F90 test case.) All other Fortran preprocessors to which I
have access can handle this situation.
More information about the All-commits
mailing list