http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59525
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- (In reply to janus from comment #2) > (In reply to Sarantis Pantazis from comment #0) > > I have some problems with inheritance. > > What you describe is not a bug in the gfortran compiler, but in your > understanding of how inheritance works. To give a hit: > > write(*,*) bla%i, bla%j > > Error: 'j' at (1) is not a member of the 'mytype' structure bla%j is not part of mytype. You need to use "select type" to access it - as you did in "subroutine setbla"