https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104036
Bug ID: 104036 Summary: Derived type assigment to allocatable with dynamic type Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: baradi09 at gmail dot com Target Milestone: --- Created attachment 52196 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52196&action=edit Demonstration code Dear developers, the behaviour of the GNU compiler is probably not standard conforming, when assigning a derived type without user defined assignment, which contains a derived type component with user defined assignment, to an allocatable variable with dynamic type. Some discussion about the topic can be found here: https://fortran-lang.discourse.group/t/intrinsic-assigment-of-derived-types-containing-components-with-user-defined-assignment/2595 I have also attached the demonstration program, where I would expect the user defined assignment be triggered when line 41 is executed, which does not happen. (On line 39 it does, as expected.) Best regards, Bálint