From: Gabriel Dos Reis Date: Wed, 4 Dec 2002 11:37:03 +0000 (+0000) Subject: re PR c++/8799 (ICE: Error reporting routines re-entered.) X-Git-Tag: releases/gcc-3.2.2~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f62962e7e051671c4b152b95b0ea8ba6b322f51;p=thirdparty%2Fgcc.git 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 --- 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: