This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/40440] Automatic deallocation component of DT function return value



------- Comment #6 from pault at gcc dot gnu dot org  2009-06-18 09:44 -------
(In reply to comment #5)
> Juergen: Thanks for the report, but it is not a regression - it might not crash
> with 4.3 (or your 4.4) but I think that's just by chance.
> 
> Paul, I think also this bug touches code for which you have the expertise.
> 
> The problem is the automatic deallocation of an allocatable component. The DT
> with this component is returned by a function but treated as variable and not
> as function. The crucial part is that the return value is a pointer! If I 

Yeeees.... there is a bug there somewhere. I shall have to think this through.
I am not sure that your testcase should be allowed at all!  I am not sure that
I understand what it means.

Paul


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40440


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]