[Patch, Fortran] PR36592 - F2003: Procedure pointer in COMMON
Tobias Burnus
burnus@net-b.de
Sun Sep 28 21:29:00 GMT 2008
Janus Weil wrote:
> the attached patch fixes PR36592, which concerns the usage of
> procedure pointers in COMMON blocks.
> No regressions on i686-pc-linux-gnu. Ok for trunk?
>
>From my side it is OK since the code is very small and simple and kind
of fixes a bug (proc pointers were supported but not in common). Please
wait a while to give others chance to comment.
Tobias
> 2008-09-28 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/36592
> * symbol.c (check_conflict): If a symbol in a COMMON block is a
> procedure, it must be a procedure pointer.
> (gfc_add_in_common): Symbols in COMMON blocks may be variables or
> procedure pointers.
> * trans-types.c (gfc_sym_type): Make procedure pointers in COMMON
> blocks work.
>
>
> 2008-09-28 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/36592
> * gfortran.dg/proc_ptr_common_1.f90: New.
> * gfortran.dg/proc_ptr_common_2.f90: New.
>
More information about the Fortran
mailing list