diff options
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/error.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 611557b..5da6ebc 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net> + + PR C++/8799 + * error.c (dump_expr): Don't ever try to dump a non-existent + expression. + 2002-12-03 Jason Merrill <jason@redhat.com> * call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 495320d..37f24ec 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: |