[all-commits] [llvm/llvm-project] eb1bd7: [flang] If it's got an argument keyword, it can't ...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sun Jan 29 08:41:04 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb1bd7086abaafb30e41d374d55e68b9f064d929
https://github.com/llvm/llvm-project/commit/eb1bd7086abaafb30e41d374d55e68b9f064d929
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-01-29 (Sun, 29 Jan 2023)
Changed paths:
M flang/lib/Semantics/expression.cpp
A flang/test/Semantics/call32.f90
Log Message:
-----------
[flang] If it's got an argument keyword, it can't become an array reference
Array references like A(1) are commonly misparsed as function references,
since the parser has almost no semantic context, and the parse tree is
fixed up later by semantics once it can be disambiguated. In a case
like A(I=1), however, the presence of an argument keyword must prevent
conversion into an array reference. (It might still also be a structure
constructor.)
Differential Revision: https://reviews.llvm.org/D142765
More information about the All-commits
mailing list