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: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2005 22:54:30 -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 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