re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated...
authorJanus Weil <janus@gcc.gnu.org>
Wed, 5 Jan 2011 18:06:21 +0000 (19:06 +0100)
committerJanus Weil <janus@gcc.gnu.org>
Wed, 5 Jan 2011 18:06:21 +0000 (19:06 +0100)
commit01738cee0f4ba9def10c783557f9341e9f9955ba
tree6307fe2558392a7d93f1ba49b724c9aee82395ab
parentbe2862278a6839e196a06e5e2df8b3c16755bbf9
re PR fortran/47180 ([OOP] EXTENDS_TYPE_OF returns the wrong result for disassociated polymorphic pointers)

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47180
* trans-expr.c (gfc_trans_class_assign): For a polymorphic NULL pointer
assignment, set the _vptr component to the declared type.

2011-01-05  Janus Weil  <janus@gcc.gnu.org>

PR fortran/47180
* gfortran.dg/extends_type_of_2.f03: New.

From-SVN: r168524
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/extends_type_of_2.f03 [new file with mode: 0644]