Am 29.08.2011 22:28, schrieb Janus Weil:
Hi all,
here is a relatively simple patch which fixes the PR in the subject
line. The problem was: For functions with polymorphic allocatable
result, the result variable was not nullified at the start.
The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
OK. Looks rather obvious.
Tobias
2011-08-29 Janus Weil<ja...@gcc.gnu.org>
PR fortran/50225
* trans-decl.c (gfc_generate_function_code): Nullify polymorphic
allocatable function results.
2011-08-29 Janus Weil<ja...@gcc.gnu.org>
PR fortran/50225
* gfortran.dg/class_result_1.f03: New.