This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: issue with polymorphism
- From: Andrew Benson <abenson at its dot caltech dot edu>
- To: fortran at gcc dot gnu dot org
- Cc: Daniel Franke <franke dot daniel at gmail dot com>
- Date: Sun, 06 May 2012 11:30:21 -0700
- Subject: Re: issue with polymorphism
- References: <4740786.LcdV043UFX@silence>
On Sunday, May 06, 2012 11:18:03 AM Daniel Franke wrote:
> Hi all.
>
> I'm trying to use the polymorphism features of F03 and got stuck with the
> attached testcase - the Fortran and C++ versions should IMO be equivalent,
> but the outcome is not:
>
> $ gfortran hook.f90 && ./a.out
> hook: a
> $ g++ hook.cpp && ./a.out
> hook b
>
> [gcc version 4.6.1, Ubuntu system compiler]
>
> I currently can't update to a 4.7 or latest svn as the build breaks due to
> some multiarch setup issues recently introduced in Ubuntu/Debian.
>
> Until I sorted out my system to compile myself, could somebody be so kind
> and quickly run this through 4.7 and check if this difference still exists
> and if yes, possibly comment if gfortran's behaviour is expected and
> correct?
Exact same result with 4.8 r186145
-Andrew.
--
* Andrew Benson: http://www.tapir.caltech.edu/~abenson/contact.html
* Galacticus: http://sites.google.com/site/galacticusmodel