[flang-commits] [flang] [flang] fix scoping of cray pointer declarations and add check for initialization (PR #136776)

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Tue Apr 29 15:40:20 PDT 2025


================
@@ -6650,7 +6650,7 @@ bool DeclarationVisitor::Pre(const parser::BasedPointer &) {
 
 void DeclarationVisitor::Post(const parser::BasedPointer &bp) {
   const parser::ObjectName &pointerName{std::get<0>(bp.t)};
-  auto *pointer{FindSymbol(pointerName)};
+  auto *pointer{FindInScope(pointerName)};
----------------
akuhlens wrote:

I think the newly added test (resolve125.f90) shows what you are looking for, but let me know if you where thinking of something else. 

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


More information about the flang-commits mailing list