https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116706
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #2 from anlauf at gcc dot gnu.org ---
The problem seems to show up in trans-array.cc::gfc_is_reallocatable_lhs
11238 /* All that can be left are allocatable components. */
11239 if ((sym->ts.type != BT_DERIVED
11240 && sym->ts.type != BT_CLASS)
11241 || !sym->ts.u.derived->attr.alloc_comp)
11242 return false;
For some reason attr.alloc_comp is not properly set up in the assignment
when array 'nodes' is a pointer. Removing the test in line 11241 fixes
the issue.