https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79255
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Mar 31 18:40:35 2017 New Revision: 246622 URL: https://gcc.gnu.org/viewcvs?rev=246622&root=gcc&view=rev Log: PR debug/79255 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is a FUNCTION_DECL, pass it as decl instead of origin to process_scope_var. * gcc.dg/pr79255.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr79255.c Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog