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] PR40451: [F03] procedure pointer assignment rejected


Janus Weil wrote:
> here is my patch for PR40451, where a PROCEDURE with explicit
> interface erroneously got implicitly typed before the interface was
> copied to the symbol. The fix is easy: Only do the implicit typing if
> the symbol has no ts.interface.
>
> Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>   
OK. Thanks for the quick patch.

Tobias

> 2009-06-17  Janus Weil  <janus@gcc.gnu.org>
>
> 	PR fortran/40451
> 	* resolve.c (resolve_contained_fntype): Prevent implicit typing for
> 	procedures with explicit interface.
> 	* symbol.c (gfc_check_function_type): Ditto.
>
> 2009-06-17  Janus Weil  <janus@gcc.gnu.org>
>
> 	PR fortran/40451
> 	* gfortran.dg/proc_ptr_result_4.f90: New.
>   


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