This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR36592 - F2003: Procedure pointer in COMMON
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janus Weil <jaydub66 at googlemail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 28 Sep 2008 23:28:33 +0200
- Subject: Re: [Patch, Fortran] PR36592 - F2003: Procedure pointer in COMMON
- References: <854832d40809281421hea48718v5bd4ea6dcb72ca4@mail.gmail.com>
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.
>