[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-20 Thread janus at gcc dot gnu dot org
--- Comment #7 from janus at gcc dot gnu dot org 2009-11-20 15:51 --- The runtime problem and the obsolete comment in the manual are fixed now. So the only issue left is the wrong static declaration reported in comment #3. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42072

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-20 Thread janus at gcc dot gnu dot org
--- Comment #8 from janus at gcc dot gnu dot org 2009-11-20 16:08 --- (In reply to comment #7) So the only issue left is the wrong static declaration reported in comment #3. This is now PR 42122. Closing this one. -- janus at gcc dot gnu dot org changed: What

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-18 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2009-11-18 13:25 --- Subject: Bug 42072 Author: janus Date: Wed Nov 18 13:24:54 2009 New Revision: 154292 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=154292 Log: 2009-11-18 Janus Weil ja...@gcc.gnu.org PR

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-17 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2009-11-17 12:00 --- (In reply to comment #3) 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. Yes,

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-16 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2009-11-16 22:51 --- Side-note on C_F_PROCPOINTER: The manual claims that ... Due to the currently lacking support of procedure pointers in GNU Fortran this function is not fully operable. ... which is a dirty lie. --

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-16 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2009-11-16 22:55 --- Proposed fix: Index: gcc/fortran/trans-expr.c === --- gcc/fortran/trans-expr.c(revision 154189) +++ gcc/fortran/trans-expr.c(working copy) @@

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-16 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug fortran/42072] [F03] wrong-code with C_F_PROCPOINTER

2009-11-16 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-11-16 23:00 --- Wrong buttons :). -- pinskia at gcc dot gnu dot org changed: What|Removed |Added