This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47180] [OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 5 Jan 2011 18:41:49 +0000
- Subject: [Bug fortran/47180] [OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers
- Auto-submitted: auto-generated
- References: <bug-47180-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47180
--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-01-05 18:41:36 UTC ---
> Simple solution:
>
> - gfc_symbol *vtab;
> + gfc_symbol *vtab = NULL;
This is the fix I have also reached and it allows gcc/fortran/trans-expr.c to
be compiled.