[Patch, fortran] PR39800 - Rejects PRIVATE TYPE as component of local type declaration

Paul Richard Thomas paul.richard.thomas@gmail.com
Mon Apr 20 21:58:00 GMT 2009


Fixed on trunk after OK from Tobias Burnus on #gfortran.  It is rather
obvious and does not need explanation.

Revision 146457.

2009-04-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/39800
	* resolve.c (is_sym_host_assoc): New function.
	(resolve_fl_derived): Call it when checking PRIVATE components
	of PUBLIC derived types.  Change gfc_error to a gfc_notify_std
	with std=f2003.
	(resolve_fl_namelist): Call it twice to check for host
	association.

2009-04-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/39800
	* gfortran.dg/private_type_13.f90: New test.
	* gfortran.dg/private_type_2.f90: Add option -std=f95.

Paul



More information about the Fortran mailing list