This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19673] pointer function with RESULT specified returns pointer to "ptr" rather than "*ptr"
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2005 23:24:29 -0000
- Subject: [Bug fortran/19673] pointer function with RESULT specified returns pointer to "ptr" rather than "*ptr"
- References: <20050128164600.19673.paulthomas2@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2005-03-03 23:24 -------
Subject: Re: pointer function with RESULT specified returns pointer to "ptr" rather than "*ptr"
Is this connected with functions that return character pointers being so
completely screwed up?
----- Original Message -----
From: "tobi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: <paulthomas2@wanadoo.fr>
Sent: Thursday, March 03, 2005 11:54 PM
Subject: [Bug fortran/19673] pointer function with RESULT specified returns
pointer to "ptr" rather than "*ptr"
>
> ------- Additional Comments From tobi at gcc dot gnu dot org 2005-03-03
> 22:54 -------
> In this particular case (sym vs sym->result) the right thing IMO would be
> to
> either *always* create a sym->result variable, which takes on all the
> functions
> attributes, or to *always* copy the attributes of the result variable to
> the
> function's symbol. This should happen once the function has been
> completely
> resolved. I believe that the latter option could be more difficult for
> the
> exact reasons that the standard requires the use of RESULT in certain
> cases.
>
> --
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19673
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19673