This is the mail archive of the gcc-patches@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]

Re: [Patch, Fortran] PR36592 - F2003: Procedure pointer in COMMON


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.
>   


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