https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119800
--- Comment #4 from anlauf at gcc dot gnu.org --- (In reply to Keith Refson from comment #3) > 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. Indeed, the problem is MOLD, not SOURCE.