The fix for PR 30161 adds support to generate template parameters debug info. It used a trick to emit debug info for template parameter paramater packs (in the context of variadic templates).
It appeared that a DWARF proposal exists for template parameter packs at http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates . g++ should probably implement that proposal instead. -- Summary: Emit DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: dodji at gcc dot gnu dot org ReportedBy: dodji at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41266