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/42072] [F03] wrong-code with C_F_PROCPOINTER



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-11-16 22:59 -------
call setpointer(ptype)
is being converted into:
  setpointer.1481 ();

So inside MAIN__ we have:
  static void setpointer (integer(kind=4) (*<T3af>) (integer(kind=4)));
  setpointer (&ptype);


That is wrong, unless I am missing a reference type somewhere.


Plus inside setpointer I think:
  p = (integer(kind=4) (*<T3af>) (integer(kind=4)) *) funpointer;

is incorrect, it should be:
*p = funpointer;


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
   Last reconfirmed|2009-11-16 22:55:50         |2009-11-16 22:59:51
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42072


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