This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30793] Segfault on calling a function returning a pointer
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Feb 2007 10:32:51 -0000
- Subject: [Bug fortran/30793] Segfault on calling a function returning a pointer
- References: <bug-30793-9410@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from burnus at gcc dot gnu dot org 2007-02-15 10:32 -------
> > I have still to re-read the test case to check whether TARGET is required
>
> However the accessed component is a POINTER to a derived type [...]
Ok, I somehow didn't realize
type field
type(mesh), pointer :: msh => null()
when I read
msh_ => fld%msh
One does not assign msh_ the variable fld%msh as target, but one assignes the
target of the pointer fld%msh to the pointer msh_.
But I don't understand why xlf does not like the TARGET attribute.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30793