This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: issue with polymorphism


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]