This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

[PATCH,fortran]: fix for PRs 32797 and 32800


hi all,

the attached patch is for the PRs 32797 and 32800. the problem with 32797 was that the result was implicitly typed and the verify_bind_c_sym wasn't catching it. for 32800, the arguments to c_f_pointer were not getting sorted before being analyzed.

bootstrapped and regtested on x86 and x86_64 linux with no new failures.

Chris

:ADDPATCH fortran:

2007-07-18 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/32797
	PR fortran/32800
	* gfortran.dg/pr32797.f03: New test case.
	* gfortran.dg/pr32800.f03: Ditto.
	* gfortran.dg/c_ptr_tests_5.f03: Updated expected error message.

2007-07-18 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/32797
	PR fortran/32800
	* decl.c (verify_bind_c_sym): Use the result symbol for functions
	with a result clause.  Warn if implicitly typed.  Verify the type
	and rank of the SHAPE argument, if given.
	* resolve.c (gfc_iso_c_sub_interface): Use gfc_procedure_use to
	check the actual args against the formal, sorting them if
	necessary.
	* symbol.c (gen_shape_param): Initialize type of SHAPE param to
	BT_VOID.

Attachment: icb_pr32797_32800.diff
Description: Text document


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