This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: [Patch, Fortran, F03] PR 40996: Allocatable Scalars


Janus Weil wrote:
Btw: Do we have a function which checks if one type is an extension
(direct or indirect) of another, or do I have to invent this?

Hm, I thought I had already implemented one once, but probably I haven't (I did a quick search and also can't think where I would have needed it). But it should of course be easy to do...


BTW, what I did implement once is gfc_get_derived_super_type in symbol.c. Although this is also trivial, I think you can use it where you need it. Then just iterate it and see if you hit your CLASS-defined type ;)

Cheers,
Daniel

--
Done:  Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri


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