[Bug fortran/59525] Inheritance problems
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 16 14:24:00 GMT 2013
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"
More information about the Gcc-bugs
mailing list