[Patch, fortran] PR28630 - ICE on reexport of renamed type

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Aug 19 01:29:00 GMT 2006


On Wed, Aug 09, 2006 at 04:14:51PM +0200, THOMAS Paul Richard 169137 wrote:
> 2006-08-09 Paul Thomas <pault@gcc.gnu.org>
> 
> 	PR fortran/28601
> 	PR fortran/28630
> 	* gfortran.h : Eliminate gfc_dt_list structure and reference
> 	to it in gfc_namespace.
> 	* resolve.c (resolve_fl_derived): Remove the building of the
> 	list of derived types for the current namespace.
> 	* symbol.c (find_renamed_type): New function to find renamed
> 	derived types by symbol name rather than symtree name.
> 	(gfc_use_derived): Search parent namespace for identical
> 	derived type and use it, even if local version is complete,
> 	except in interface bodies. Ensure that renamed derived types
> 	are found by call to find_renamed_type. Recurse for derived
> 	type components.
> 	(gfc_free_dt_list): Remove.
> 	(gfc_free_namespace): Remove call to previous.
> 	* trans-types.c (copy_dt_decls_ifequal): Remove.
> 	(gfc_get_derived_type): Remove all the paraphenalia for
> 	association of derived types, including calls to previous.
> 	* match.c (gfc_match_allocate): Call gfc_use_derived to
> 	associate any derived types that are being allocated.
> 
> 2006-08-09 Paul Thomas <pault@gcc.gnu.org>
> 
> 	PR fortran/28630
> 	* gfortran.dg/used_types_2.f90: New test.
> 
> 	PR fortran/28601
> 	* gfortran.dg/used_types_3.f90: New test.
> 

I belive that this patch is OK.  I haven't had
time to test it, but reading through the patch
suggests that the clean up and new code is the
right solution.

-- 
Steve



More information about the Fortran mailing list