[flang-commits] [flang] [flang] lower ASSOCIATED for procedure pointers (PR #76067)

Yi Wu via flang-commits flang-commits at lists.llvm.org
Wed Dec 20 12:02:37 PST 2023


yi-wu-arm wrote:

> > Thanks for all you work! I was a bit lost when doing it, but anyways. In my local test, I test `associated` with the following code.
> 
> Flang is initializing uninitialized saved and main program pointers to NULL() as an extension for more safety, so flang will consistently print false in your test, but I do not think this is something we should be testing for.

Thanks for the clarification. I understand now that the first `associated(ptr)` result is undefined behavior, also thanks for the explanation of Flang's initialization of pointers to NULL() for safety

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


More information about the flang-commits mailing list