[Bug fortran/59525] Inheritance problems
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 16 13:01:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59525
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |janus at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from janus at gcc dot gnu.org ---
(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.
> testInheritance.f08:25.23:
> write(*,*) bla%i, bla%j
> Error: 'j' at (1) is not a member of the 'mytype' structure
This error is perfectly fine. Your code is not valid Fortran.
More information about the Gcc-bugs
mailing list