re PR fortran/54784 ([OOP] wrong code in polymorphic allocation with SOURCE)
authorJanus Weil <janus@gcc.gnu.org>
Thu, 11 Oct 2012 17:52:36 +0000 (19:52 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 11 Oct 2012 17:52:36 +0000 (19:52 +0200)
commite87924ab48d86b6bf33ae6f33a6e4a0941fca970
tree4bb45a2915d953234dbef2ea935ebf4ab60b699b
parenta1dc74f2bf02aa753939071fbd6d82f8db157e66
re PR fortran/54784 ([OOP] wrong code in polymorphic allocation with SOURCE)

2012-10-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54784
* trans-stmt.c (gfc_trans_allocate): Correctly determine the reference
to the _data component for polymorphic allocation with SOURCE.

2012-10-11  Janus Weil  <janus@gcc.gnu.org>

PR fortran/54784
* gfortran.dg/class_allocate_13.f90: New.

From-SVN: r192374
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_allocate_13.f90 [new file with mode: 0644]