https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:53e1686e6e0c3e809384e6fcf5eed46f37bc296b commit r15-7512-g53e1686e6e0c3e809384e6fcf5eed46f37bc296b Author: Ed Catmur <e...@catmur.uk> Date: Sat Feb 4 17:50:33 2023 +0100 dwarf: emit DW_AT_name for DW_TAG_GNU_formal_parameter_pack [PR70536] Per https://wiki.dwarfstd.org/C++0x_Variadic_templates.md DW_TAG_GNU_formal_parameter_pack should have a DW_AT_name: 17$: DW_TAG_formal_parameter_pack DW_AT_name("args") 18$: DW_TAG_formal_parameter ! no DW_AT_name attribute DW_AT_type(reference to 13$) (...) PR c++/70536 gcc/ChangeLog: * dwarf2out.cc (gen_formal_parameter_pack_die): Add name attr. gcc/testsuite/ChangeLog: * g++.dg/debug/dwarf2/template-func-params-7.C: Check for pack names. Co-authored-by: Jason Merrill <ja...@redhat.com>