[flang-commits] [flang] [flang] Expand parent component in procedure pointer component refere… (PR #78593)

via flang-commits flang-commits at lists.llvm.org
Thu Jan 18 09:28:42 PST 2024


================
@@ -1296,9 +1296,11 @@ static NamedEntity IgnoreAnySubscripts(Designator<SomeDerived> &&designator) {
 }
 
 // Components of parent derived types are explicitly represented as such.
-std::optional<Component> ExpressionAnalyzer::CreateComponent(
-    DataRef &&base, const Symbol &component, const semantics::Scope &scope) {
-  if (IsAllocatableOrPointer(component) && base.Rank() > 0) { // C919b
+std::optional<Component> ExpressionAnalyzer::CreateComponent(DataRef &&base,
+    const Symbol &component, const semantics::Scope &scope,
+    bool C919AlreadyEnforced) {
+  if (!C919AlreadyEnforced && IsAllocatableOrPointer(component) &&
+      base.Rank() > 0) { // C919b
----------------
jeanPerier wrote:

C919b. Updated, thanks.

https://github.com/llvm/llvm-project/pull/78593


More information about the flang-commits mailing list