Fix: Support derived-type component array sections in MAXLOC
Fixes #11639
This pull request resolves a bug that caused the compiler to erroneously reject valid MAXLOC operations when evaluating array sections embedded inside arrays of derived types (such as top(:)%x(1)).
(ast_common_visitor.h): Refactored the array resolution logic. The compiler now actively detects and preserves the dimensionality of parent struct arrays, successfully outputting an ArraySection_t node rather than losing shape context and defaulting to a scalar item.
(asr_to_llvm.cpp & llvm_utils): Fixed how the compiler handles arrays that are nested inside custom data structures. We added a new helper function (load_pointer_element) so the compiler can safely find the exact memory addresses and figure out the correct shape and size of these nested arrays without crashing.
Hey @HarshitaKalani ,can you please have a look on this pr, Thank You!
Hey @HarshitaKalani , I have now removed the version specifications ,please have a look at this now.