This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR fortran/21977, nested function returning array
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: "'fortran at gcc dot gnu dot org' GFortran" <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 02 Jan 2006 21:58:49 +0100
- Subject: Re: [PATCH] Fix PR fortran/21977, nested function returning array
- References: <c38443716153a5c2665182a6f6243fa0@physics.uc.edu>
Andrew Pinski wrote:
> The problem here is that we use the inner's fake result decl for the
> outer function if
> the inner function returns array.
>
> This fixes the problem by NULLing out current_fake_result_decl after
> converting
> the function to GCC's trees.
Won't this break if the containing function also needs a fake_result_decl,
i.e. e.g. in the original testcase?
- Tobi