This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, committed] PR 47180: [OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 5 Jan 2011 12:10:43 -0800
- Subject: Re: [Patch, Fortran, committed] PR 47180: [OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers
- References: <AANLkTimV9GhWNQOOhExmSwx78hA15ouDX4kJnG0Z1tv0@mail.gmail.com>
On Wed, Jan 5, 2011 at 10:11 AM, Janus Weil <janus@gcc.gnu.org> wrote:
> Hi all,
>
> I just committed as obvious another OOP wrong-code fix:
>
> http://gcc.gnu.org/viewcvs?view=revision&revision=168524
>
> It is very much a follow-up to the patch that I committed earlier
> today: While the earlier patch fixed the dynamic type of unallocated
> allocatables, this one does the same for disassociated pointers. For
> both the dynamic type equals the declared type.
>
This breaks the bootstrap:
http://gcc.gnu.org/ml/gcc-regression/2011-01/msg00060.html
../../src-trunk/gcc/fortran/trans-expr.c: In function 'gfc_trans_class_assign':
../../src-trunk/gcc/fortran/trans-expr.c:6138:42: error: 'vtab' may be
used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors
make[6]: *** [fortran/trans-expr.o] Error 1
--
H.J.