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]

[PATCH,fortran]: fix for PR 33497


hi all,

the attached patch fixes PR 33497 for me. the problem was in gfc_iso_c_func_interface; it did not look correctly at the subcomponents of the given expression when testing the argument to c_loc. the included test case is almost entirely what was provided on the bugzilla page for the PR but i did add a few lines to it to create an error condition that should be caught.

bootstrapped and regtested on x86 linux with no new failures.

thanks.
Chris

:ADDPATCH fortran:

ChangeLog entry:

2007-09-19 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/33497
	* resolve.c (gfc_iso_c_func_interface): Use information from
	subcomponent if applicable.

2007-09-19 Christopher D. Rickett <crickett@lanl.gov>

	PR fortran/33497
	* gfortran.dg/c_loc_tests_11.f03: New test case.

Attachment: icb.diff
Description: Text document


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