https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119800
--- Comment #3 from Keith Refson <krefson at gmail dot com> --- I think it probably also needs to flag up if MOLD contains an allocatable or pointer component too. Modifying the example to TRANSFER to an integer, followed by a second TRANSFER with SOURCE= as an integer array and MOLD as the type, should warn on both instances.