[PATCH, Fortran] ABSTRACT INTERFACE

Janus Weil jaydub66@googlemail.com
Sat Aug 18 14:58:00 GMT 2007


:ADDPATCH fortran:

Hi all,
this patch implements ABSTRACT interfaces, as defined in section
12.3.2 of the F2003 standard. It is based on the work of Paul Thomas,
which was taken over and extended by me, with some help from Tobias
Schlüter and Tobias Burnus.
Abstract interfaces are not very useful on their own, but prepare for
the implementation of PROCEDURE declarations (and pointers) which I'm
working on right now and which hopefully will be finished soon.
Regression tested on i686-pc-linux-gnu and x86_64-unknown-linux-gnu.
OK for trunk?
Janus



2007-08-18  Paul Thomas  <pault@gcc.gnu.org>
	    Janus Weil  <jaydub66@gmail.com>

	* interface.c (gfc_match_interface,gfc_match_abstract_interface,
	gfc_match_end_interface,gfc_add_interface): Add abstract interface.
	* dump-parse-tree.c (gfc_show_attr): Ditto.
	* gfortran.h (interface_type,symbol_attribute): Ditto.
	* module.c (gfc_match_use,ab_attribute,attr_bits,
	mio_symbol_attribute): Ditto.
	* resolve.c (resolve_function): Ditto.
	* match.h: Ditto.
	* parse.c (decode_statement): Ditto.
	(parse_interface): Ditto, check for C1203 (name of abstract interface
	cannot be the same as an intrinsic type).
	* decl.c (gfc_match_bind_c): Check for NAME= with abstract interfaces.
	(access_attr_decl): Handle Abstract interfaces.


2007-08-17  Tobias Burnus  <burnus@net-b.de>

	* gfortran.dg/interface_abstract_1.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: absint127586.diff
Type: text/x-patch
Size: 8553 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070818/94d9ba2c/attachment.bin>


More information about the Gcc-patches mailing list