This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]