re PR fortran/51972 ([OOP] Wrong code as _copy does not honor CLASS components)
authorTobias Burnus <burnus@net-b.de>
Sat, 28 Jan 2012 16:57:28 +0000 (17:57 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 28 Jan 2012 16:57:28 +0000 (17:57 +0100)
commit3bfe6da98d7a070dcc5531b35dc74b12b5e602aa
treef4a543b8d7885ccccb2a7c8d3a40f5b7ac458c8a
parentce590933fe3c617e15fb1efe4f5e9ddc1dfafbfb
re PR fortran/51972 ([OOP] Wrong code as _copy does not honor CLASS components)

2012-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51972
        * trans-stmt.c (gfc_trans_allocate): Properly check whether
        we have a BT_CLASS which needs to be memset.

2012-01-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/51972
        * gfortran.dg/class_allocate_12.f90: New.

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