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/30793] Segfault on calling a function returning a pointer



------- 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


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