gfortrans handling of type bound procedures of polymorphic types

Tilo Schwarz tilo@tilo-schwarz.de
Mon Apr 8 19:22:00 GMT 2013


Hi all,

since I currently "explore" the Fortran OOP features I was wondering, how  
gfortran handles type bound procedures of polymorphic types.

So the one question is (just out of curiosity):

Are the polymorphic features of Fortran handled by the same mechanisms  
which are used for C++?

So if I define a polymorphic type and attach a procedure which is  
overridden in a derived type - does this look like the equivalent C++  
(virtual function) definition at some point in the compiler (midend?)

Does this already happen in the frontend?

I was wondering, because with -fdump-tree-... some terms (like "vptr"  
etc.) sound like the corresponding C++ mechanisms.


Regards,
	Tilo



More information about the Fortran mailing list