re PR fortran/69011 ([OOP] ICE in gfc_advance_chain for ALLOCATE with SOURCE)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 29 Dec 2015 13:20:37 +0000 (14:20 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 29 Dec 2015 13:20:37 +0000 (14:20 +0100)
commit1c645536272780edf11eacc98bf2fa014f8c1489
tree5b56e6b444300ad8bd312805de4757146582d64c
parent0bf0df50e5a18e7b707ba0091cb86e1bd388d4b3
re PR fortran/69011 ([OOP] ICE in gfc_advance_chain for ALLOCATE with SOURCE)

gcc/testsuite/ChangeLog:

2015-12-29  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/69011
* gfortran.dg/allocate_with_source_16.f90: New test.

gcc/fortran/ChangeLog:

2015-12-29  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/69011
* trans-stmt.c (gfc_trans_allocate): Unwrap a NOP_EXPR to make sure
the actual type of the source=-expr is used when it is of class type.
Furthermore prevent an ICE.

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