semantics.c (call_stack, [...]): New.
authorJason Merrill <jason@redhat.com>
Tue, 2 Nov 2010 01:31:40 +0000 (21:31 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Nov 2010 01:31:40 +0000 (21:31 -0400)
commit2bfe0527cd744a6f526fe11dd6c11ab39ad0a653
tree5361d6c7e3709d19625d07d0d987fa9edd7ff5db
parentddbbc9a109f3d8b91f5ba43a4b0d933d048a3b0f
semantics.c (call_stack, [...]): New.

* semantics.c (call_stack, call_stack_tick, cx_error_context): New.
(last_cx_error_tick, push_cx_call_context, pop_cx_call_context): New.
(cxx_eval_call_expression): Call push/pop_cx_call_context instead
of giving follow-on errors.
* error.c (maybe_print_constexpr_context): New.
(cp_diagnostic_starter): Call it.
* cp-tree.h: Declare cx_error_context.

From-SVN: r166169
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-throw.C