[flang-commits] [flang] [flang][Semantics] Introduce `-Wpass-global-variable` warning (PR #160324)

via flang-commits flang-commits at lists.llvm.org
Tue Oct 7 13:19:39 PDT 2025


foxtran wrote:

@akuhlens,

Based on the code, it returns nullptr when the symbol doesn't refer to a "object entity". 

Yep, that was a problem. I had "use entity" which inside is an "object entity". But for "use entity", GetShape could not provide GetShape (while it can, actually). Now, it is fixed and my problem is gone.

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


More information about the flang-commits mailing list