re PR c++/8799 (ICE: Error reporting routines re-entered.)
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Wed, 4 Dec 2002 11:32:14 +0000 (11:32 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Wed, 4 Dec 2002 11:32:14 +0000 (11:32 +0000)
        PR C++/8799
        * error.c (dump_expr): Don't ever try to dump a non-existent
        expression.

From-SVN: r59814

gcc/cp/ChangeLog
gcc/cp/error.c

index 611557b..5da6ebc 100644 (file)
@@ -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
index 495320d..37f24ec 100644 (file)
@@ -1424,6 +1424,9 @@ dump_expr (t, flags)
      tree t;
      int flags;
 {
+  if (t == 0)
+    return;
+  
   switch (TREE_CODE (t))
     {
     case VAR_DECL: