pt.c (tinst_level_tick, [...]): Replace with last_error_tinst_level.
authorJason Merrill <jason@redhat.com>
Sun, 17 Jul 2011 02:34:22 +0000 (22:34 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 17 Jul 2011 02:34:22 +0000 (22:34 -0400)
commit6573e8a0a9a5242a30cafc7290e9d6449a8cee52
treea63c4991199e85d2676b29a436459f79f0374054
parent3d2f6864225cc660adfc9136c859dd26e2a40135
pt.c (tinst_level_tick, [...]): Replace with last_error_tinst_level.

gcc/cp/
* pt.c (tinst_level_tick, last_template_error_tick): Replace with
last_error_tinst_level.
(push_tinst_level, pop_tinst_level): Adjust.
(problematic_instantiation_changed): Adjust.
(record_last_problematic_instantiation): Adjust.
* error.c (cp_print_error_function): Don't print
current_function_decl if we're in a template instantiation context.
(print_instantiation_full_context): Always print first line.
gcc/testsuite/
* lib/prune.exp (prune_gcc_output): Prune "In substitution" too.

From-SVN: r176366
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/lib/prune.exp
libstdc++-v3/testsuite/20_util/shared_ptr/assign/shared_ptr_neg.cc
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc