[flang-commits] [flang] [flang] Silence bogus error message (PR #111057)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Thu Oct 3 15:31:35 PDT 2024


================
@@ -1649,7 +1649,10 @@ bool HasDefinedIo(common::DefinedIo which, const DerivedTypeSpec &derived,
       }
     }
   }
-  return false;
+  // Check for inherited defined I/O
+  const auto *parentType{derived.typeSymbol().GetParentTypeSpec()};
+  return parentType && HasDefinedIo(which, *parentType, scope);
+  ;
----------------
kkwli wrote:

I think this statement is not necessary.

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


More information about the flang-commits mailing list