https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67091
Bug ID: 67091 Summary: Bad result for type-bound procedures returning pointers to the intrinsic function ASSOCIATED Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: pault at gcc dot gnu.org Target Milestone: --- Please see https://groups.google.com/forum/#!topic/comp.lang.fortran/dN_tQA1Mu-I for the description of the bug. It only pertains to the 'target' argument of associated and comes about because the 'pre' block was not added to the code, thereby not setting the vptr and data of the class argument. The fix is so trivial and safe that I will commit it immediately to trunk and, in a few days,to 5 branch. Cheers Paul