https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114781
Bug ID: 114781
Summary: Error in ALLOCATE with MOLD=
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111521
--- Comment #1 from Davide Cesari ---
An update:
By replacing the line
list_getcurr => this%curr%getval()
with
CLASS(*),POINTER :: l_p
l_p => this%curr%getval()
list_getcurr => l_p
i.e. assigning the upper function result to a temporary loc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111521
Bug ID: 111521
Summary: Polymorphic variable loses information about the
actual type assigned when passed as function result
Product: gcc
Version: 13.2.1
Status: UNCONFI