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

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Apr 24 15:15:30 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)};
----------------
klausler wrote:

Do you need a test that demonstrates that an attempt to host-associate a Cray pointer will now fail with `implicit none (type)`?

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


More information about the flang-commits mailing list