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, OOP] Reject polymorphic arrays in 4.6


Hi all,

the 4.6 release is approaching in big steps and it will feature a lot
of OOP goodies. However, polymorphic arrays are still basically
unimplemented and I think the cleanest way to deal with this is to
reject dimensionful class variables altogether. This is what the
attached patch does.

I had to modify a few test cases which contain class arrays. Most of
them are just checking error messages, and none is actually "dg-do
run". I just commented out some stuff and added FIXME notes. Also I
would say we do not need a new test case here. Anyway it is only a
temporary rejection, and we will hopefully remove the error message as
soon as possible after the 4.6 release and start implementing class
arrays ...

Ok for trunk?

Cheers,
Janus



2011-02-12  Janus Weil  <janus@gcc.gnu.org>

	* class.c (gfc_build_class_symbol): Reject polymorphic arrays.
	* decl.c (build_sym,build_struct,attr_decl1): Use return value of
	'gfc_build_class_symbol'.


2011-02-12  Janus Weil  <janus@gcc.gnu.org>

	* gfortran.dg/allocate_derived_1.f90: Modified.
	* gfortran.dg/class_7.f03: Modified.
	* gfortran.dg/coarray_14.f90: Modified.
	* gfortran.dg/typebound_proc_13.f03: Modified.

Attachment: class_arrays.diff
Description: Binary data


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