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


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