From 4f62962e7e051671c4b152b95b0ea8ba6b322f51 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Wed, 4 Dec 2002 11:37:03 +0000 Subject: [PATCH] re PR c++/8799 (ICE: Error reporting routines re-entered.) PR C++/8799 * error.c (dump_expr): Don't ever try to dump a non-existent expression. From-SVN: r59815 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/error.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bb4e220eb94a..116b6b50324c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2002-12-04 Gabriel Dos Reis + + PR C++/8799 + * error.c (dump_expr): Don't ever try to dump a non-existent + expression. + 2002-12-02 Mark Mitchell PR c++/8615 diff --git a/gcc/cp/error.c b/gcc/cp/error.c index a945014a5736..659e60c26fc2 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1424,6 +1424,9 @@ dump_expr (t, flags) tree t; int flags; { + if (t == 0) + return; + switch (TREE_CODE (t)) { case VAR_DECL: -- 2.47.2