re PR fortran/50225 ([OOP] The allocation status for polymorphic allocatable function...
commit7a3eeb8555b6c14ccb9cd6b45ae0257da966fa07
authorJanus Weil <janus@gcc.gnu.org>
Mon, 29 Aug 2011 21:55:10 +0000 (29 23:55 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Mon, 29 Aug 2011 21:55:10 +0000 (29 23:55 +0200)
treee859dc72ff3060178030357a0a345be57c979755
parent3167ec4a0bbfb94cab010af6c1c34f267e571cac
re PR fortran/50225 ([OOP] The allocation status for polymorphic allocatable function results is not set properly)

2011-08-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50225
* trans-decl.c (gfc_generate_function_code): Nullify polymorphic
allocatable function results.

2011-08-29  Janus Weil  <janus@gcc.gnu.org>

PR fortran/50225
* gfortran.dg/class_result_1.f03: New.

From-SVN: r178262
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_result_1.f03 [new file with mode: 0644]