------- Comment #2 from anlauf at gmx dot de 2008-12-11 22:25 ------- (In reply to comment #1) > I think the warning is OK in the sense that the pointer could point to the > same > memory address which could potentially make trouble, but still the warning > feels too strong.
I don't mind a warning which is emitted with -Wall, but there is too much noise with standard compilation flags, given that the trouble you mention is just potential, but need not be real. Note that with standard F95 one does not have allocatable derived type components, so in the original code where the example is derived from pointers are the only possibility. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38487