re PR debug/46955 (Missing DW_AT_const_value from DW_TAG_template_value_parameter)
authorDodji Seketeli <dodji@redhat.com>
Tue, 11 Jan 2011 21:20:07 +0000 (21:20 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 11 Jan 2011 21:20:07 +0000 (22:20 +0100)
commitf8fb7295298da14f3ae81d27f9c926ede96d466a
treeb4919cd666c7d15bbfab15b801b4cb125555091a
parentdc6715320db92089b3c1b046157b56b5680738a5
re PR debug/46955 (Missing DW_AT_const_value from DW_TAG_template_value_parameter)

Fix PR debug/46955

gcc/cp/

* cp-lang.c (get_template_innermost_arguments_folded)
(get_template_argument_pack_elems_folded)
(template_arg_needs_folding, fold_cplus_constants): New static
functions.
(LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS): Set this hook to
get_template_innermost_arguments_folded.
(LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS): Set this hook to
get_template_argument_pack_elems_folded.

gcc/testsuite/

* g++.dg/debug/dwarf2/template-params-8.C: New test.

From-SVN: r168681
gcc/cp/ChangeLog
gcc/cp/cp-lang.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/template-params-8.C [new file with mode: 0644]