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