[Patch, Fortran, F03] PR 54147: Interface checks for PPCs & deferred TBPs

Janus Weil janus@gcc.gnu.org
Wed Aug 1 15:48:00 GMT 2012


Hi all,

here is a follow-up patch to my recent fix for PR 42418. Shortly after
committing it, I realized that the same checks should be done not only
for plain PROCEDURE declarations, but also for procedure-pointer
components and (deferred) type-bound procedures. So, what the attached
patch does, is to separate the checks out of their original place, put
them into a stand-alone routine and call this from different places in
order to apply the checks to the three cases mentioned above.

The new test cases are completely analogous to the one for 42418, but
tailored to PPCs & TBPs.

Patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2012-08-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54147
	* resolve.c (check_proc_interface): New routine for PROCEDURE interface
	checks.
	(resolve_procedure_interface,resolve_typebound_procedure,
	resolve_fl_derived0): Call it.

2012-08-01  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/54147
	* gfortran.dg/abstract_type_6.f03: Modified.
	* gfortran.dg/proc_ptr_comp_3.f90: Modified.
	* gfortran.dg/proc_ptr_comp_35.f90: New.
	* gfortran.dg/typebound_proc_9.f03: Modified.
	* gfortran.dg/typebound_proc_26.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr54147.diff
Type: application/octet-stream
Size: 9255 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120801/6320ba91/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: proc_ptr_comp_35.f90
Type: application/octet-stream
Size: 657 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120801/6320ba91/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typebound_proc_26.f90
Type: application/octet-stream
Size: 733 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120801/6320ba91/attachment-0002.obj>


More information about the Gcc-patches mailing list