Re: [Patch,Fortran] Add polymorphic type support (OOP, RTTI) - merge from Fortran-dev branch
Janus Weil <janus <at> gcc.gnu.org>
2009-10-01 11:35:51 GMT
>>> attached patch adds more OOP; it is just the difference between the 4.5
>>> trunk and the Fortran-dev branch (with one additional line).
> I have now committed the unmodified patch to the trunk as Rev. 152345.
thanks a lot for taking care of the merge. I will have a look at your
comments later (I will be back home tomorrow).
Also: Now that all the OOP stuff has landed on trunk, I would
encourage all interested users (Salvatore, Damian, anyone else?) to
test the current implementation, so that we can quickly fix the
> * * *
> Some comments - (a)-(d) go mostly to Janus, the comment afterwards
> mostly to Paul.
> a) SAME_TYPE_AS and EXTENDS_TYPE_OF: I think one could add a
> compile-time simplifier.
> b) As shown my posted test program, the following often does not work
> (nested select_type blocks, ...). I think one could have a static global
> linked list, which gets pushed the current variable when entering the
> block and popped when leaving. In the block one then walks through the