http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46955

--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-11 
21:20:13 UTC ---
Author: dodji
Date: Tue Jan 11 21:20:07 2011
New Revision: 168681

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168681
Log:
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.

Added:
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/template-params-8.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-lang.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to