------- Comment #10 from pault at gcc dot gnu dot org 2009-06-18 20:51 ------- (In reply to comment #8) > > I am not sure that your testcase should be allowed at all! I am not sure > > that > > I understand what it means. > > I think it is valid and not different from:
Yes, I understood after a bit of dyslexia about it :-( Since the function result is a pointer, it is an ultimate component and, I think, the deallocation of the allocatable components should not be attempted. If you agree with me, I'll make it so. Otherwise, it'll need a temporary. Cheers Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40440