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
On Wed, Jan 05, 2011 at 12:10:43PM -0800, H.J. Lu wrote:
> 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
>
It's alrady been fixed.
http://gcc.gnu.org/ml/gcc-bugs/2011-01/msg00438.html
--
Steve