it is definitely a bug in gfortran. Do you have any work-around?
From: dominiq at lps dot ens.fr
To: jilf...@yahoo.com
Sent: Wednesday, January 25, 2012 12:59 PM
Subject: [Bug fortran/51995] Polymorphic class fails at runtime
http://gcc.gnu.org/bugzilla
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51995
Tobias Burnus changed:
What|Removed |Added
CC||burnus at gcc dot gnu.org
--- Comment #3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51995
--- Comment #2 from Tobias Burnus 2012-01-25
11:05:41 UTC ---
Using today's GCC 4.7 and using one one-week-old one, it compiles without any
error.
It seems as if the bug has been already fixed - or it only affects certain
architectures. Can you
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51995
--- Comment #1 from Dominique d'Humieres 2012-01-25
10:59:09 UTC ---
I confirm that on x86_64-apple-darwin10 from
gcc version 4.6.0 20100723 (experimental) [trunk revision 162456] (GCC) up to
now,
gfortran gives the following errors for the test