[patch] Fix debug info of nested inline functions

Jason Merrill jason@redhat.com
Mon May 14 16:50:00 GMT 2012


On 05/14/2012 11:54 AM, Eric Botcazou wrote:
>> Hmm, why isn't current_function_decl == decl when we're trying to emit
>> the abstract instance of a nested function?
>
> Because it is emitted when the first instance of the parent function is seen,
> and in this case current_function_decl == parent_decl.

Our normal procedure is to generate a declaration when we see a function 
in its enclosing context, and then fix it up later when we see the 
definition.  Why not handle this similarly?

Jason



More information about the Gcc-patches mailing list