[Bug fortran/47180] [OOP] EXTENDS_TYPE_OF returns the wrong result if the polymorphic variable is unallocated

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 5 14:38:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47180

--- Comment #1 from janus at gcc dot gnu.org 2011-01-05 14:37:26 UTC ---
(In reply to comment #0)
> Found when looking at PR 41580.
> 
> The following program should print 6 times "T" but it prints trice "F" followed
> by trice "T".

Actually it does print six time "T" for me!

Are you sure your trunk is up to date?

Note that r168505 is crucial here, which is the fix for PR47024 that I just
committed a few hours ago, and which fixes this very issue ...



More information about the Gcc-bugs mailing list