[Patch, Fortran, OOP] Reject polymorphic arrays in 4.6
Janus Weil
janus@gcc.gnu.org
Sat Feb 12 17:33:00 GMT 2011
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class_arrays.diff
Type: application/octet-stream
Size: 5906 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110212/c9695bcd/attachment.obj>
More information about the Fortran
mailing list