https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740
Bug ID: 67740 Summary: Wrong association status of allocatable character pointer in derived types Product: gcc Version: 5.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 36405 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36405&action=edit Self containing example demonstrating the issue. Dear all, I've found the following problem with gfortran 5.2.0: Let's take a derived type (Base) with a pointer component (string) of the type deferred length character, one instance of this derived type and two pointers (p1 and p2) pointing to this one instance. While 'associated(p1, p2)' correctly detects the equivalence of the two pointers, 'associated(p1%string, p2%string)' wrongly indicates an inequivalence of the pointer components. Best, Bálint