[Patch, Fortran, OOP] PR 56500: "IMPLICIT CLASS(...)" wrongly rejected
Janus Weil
janus@gcc.gnu.org
Wed Mar 20 21:08:00 GMT 2013
Hi all,
here is a simple patch which fixes some problems with IMPLICT
CLASS(...) statements. Actually that's not a feature I would seriously
recommend anyone to use, but the Fortran standard allows it, so I
guess we should better support it ;)
The short patch attached here replaces all previous draft patches in
the PR and simultaneously fixes both comment 0 and 1. Regtested on
x86_64-unknown-linux-gnu. Ok for trunk?
Cheers,
Janus
2013-03-20 Janus Weil <janus@gcc.gnu.org>
PR fortran/56500
* symbol.c (gfc_set_default_type): Build class container for
IMPLICIT CLASS.
2013-03-20 Janus Weil <janus@gcc.gnu.org>
PR fortran/56500
* gfortran.dg/implicit_class_1.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr56500_v4.diff
Type: application/octet-stream
Size: 579 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130320/f0a39c09/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit_class_1.f90
Type: application/octet-stream
Size: 631 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130320/f0a39c09/attachment-0001.obj>
More information about the Fortran
mailing list