https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91887
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Oct 23 10:32:06 2019 New Revision: 277312 URL: https://gcc.gnu.org/viewcvs?rev=277312&root=gcc&view=rev Log: 2019-10-23 Richard Biener <rguent...@suse.de> Backport from mainline 2019-10-17 Richard Biener <rguent...@suse.de> PR debug/91887 * dwarf2out.c (gen_formal_parameter_die): Also try to match context_die against a DW_TAG_GNU_formal_parameter_pack parent. * g++.dg/debug/dwarf2/pr91887.C: New testcase. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/debug/dwarf2/pr91887.C Modified: branches/gcc-9-branch/gcc/ChangeLog branches/gcc-9-branch/gcc/dwarf2out.c branches/gcc-9-branch/gcc/testsuite/ChangeLog