[Bug fortran/30793] Segfault on calling a function returning a pointer
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 15 10:33:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list