https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69011
--- Comment #10 from vehre at gcc dot gnu.org --- Author: vehre Date: Tue Dec 29 13:20:37 2015 New Revision: 231992 URL: https://gcc.gnu.org/viewcvs?rev=231992&root=gcc&view=rev Log: gcc/testsuite/ChangeLog: 2015-12-29 Andre Vehreschild <ve...@gcc.gnu.org> PR fortran/69011 * gfortran.dg/allocate_with_source_16.f90: New test. gcc/fortran/ChangeLog: 2015-12-29 Andre Vehreschild <ve...@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. Added: trunk/gcc/testsuite/gfortran.dg/allocate_with_source_16.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog