re PR fortran/60289 (allocating class(*) pointer as character gives type-spec require...
authorAndre Vehreschild <vehre@gmx.de>
Fri, 6 Feb 2015 11:22:54 +0000 (12:22 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 6 Feb 2015 11:22:54 +0000 (12:22 +0100)
commite3a7c6cf721d52efe1a80b83149edd8c66568841
tree5389ce292f0a5b165c64799355b8af0e1724dcb6
parent9fb87eb0bb346faced57e1f7ea0f9d7f4b9dd472
re PR fortran/60289 (allocating class(*) pointer as character gives type-spec requires the same character-length parameter)

PR fortran/60289
Initial patch by Janus Weil
* resolve.c (resolve_allocate_expr): Add check for comp. only when
target is not unlimited polymorphic.
* trans-stmt.c (gfc_trans_allocate): Assign correct value to _len
component of unlimited polymorphic entities.

* gfortran.dg/unlimited_polymorphic_22.f90: New test.

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