https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65549
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #29 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #17) > Lambda functions aren't really nested functions in the tree-nested.c sense, > but still are so closely related to the functions they are nested in that > IMHO it would be desirable not to split them off into separate partitions, > not just temporarily for GCC 5 for debug info reasons. Agreed. decl_function_context of the lambda function should give you the containing function.