This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40440] Automatic deallocation component of DT function return value
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2009 09:44:28 -0000
- Subject: [Bug fortran/40440] Automatic deallocation component of DT function return value
- References: <bug-40440-15192@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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