[PATCH] Fix PR fortran/21977, nested function returning array

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Jan 2 20:58:00 GMT 2006


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



More information about the Gcc-patches mailing list