[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-28 Thread janus at gcc dot gnu dot org
--- Comment #6 from janus at gcc dot gnu dot org 2008-08-28 15:13 --- Fixed in r139713. Closing. -- janus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-28 Thread janus at gcc dot gnu dot org
--- Comment #5 from janus at gcc dot gnu dot org 2008-08-28 15:12 --- Subject: Bug 37253 Author: janus Date: Thu Aug 28 15:10:50 2008 New Revision: 139713 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139713 Log: 2008-08-28 Janus Weil <[EMAIL PROTECTED]> PR fortran/3

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-28 Thread janus at gcc dot gnu dot org
--- Comment #4 from janus at gcc dot gnu dot org 2008-08-28 11:24 --- > One should check whether other attributes are also missing. attr.procedure is missing as well. I'll provide an extended patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37253

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-27 Thread janus at gcc dot gnu dot org
--- Comment #3 from janus at gcc dot gnu dot org 2008-08-27 21:10 --- > Actual, I have the feeling the attr.proc_pointer is not saved at all in > module.c, cf. ab_attribute in that file. Exactly. Thanks for pointing this out. The following patch fixes it: Index: gcc/fortran/module.c =

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-27 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-08-27 20:33 --- Actual, I have the feeling the attr.proc_pointer is not saved at all in module.c, cf. ab_attribute in that file. One should check whether other attributes are also missing. Dominique: Thanks for finding it; may this

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-27 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-08-27 20:30 --- call proc4( p ) should transfer to the tree code as proc4(&p) (procpointer passed by reference) but it is actually proc(p) The latter is OK for a PROCEDURE dummy argument but nor for a PROCEDURE POINTER dummy ar

[Bug fortran/37253] Segmentation fault with procedure pointer

2008-08-27 Thread janus at gcc dot gnu dot org
-- janus at gcc dot gnu dot org changed: What|Removed |Added CC||janus at gcc dot gnu dot org Status|UNCONFIRMED