OSDN Git Service

* semantics.c (call_stack, call_stack_tick, cx_error_context): New.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 01:31:40 +0000 (01:31 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Nov 2010 01:31:40 +0000 (01:31 +0000)
commit0a32318d804bdd3fb4c2a4cd3730840734c6994a
tree5361d6c7e3709d19625d07d0d987fa9edd7ff5db
parent00d0cd1bf27e85e3d3cc8fb32163484150f5c30e
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166169 138bc75d-0d04-0410-961f-82ee72b054a4
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