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

From-SVN: r59815

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

index bb4e220eb94a7407aa1359b56645037b1b616aab..116b6b50324c2495f928a10c204641f891f61360 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-02  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/8615
index a945014a5736d8a24f22377ea21829fe44917879..659e60c26fc2740232fdbf9ffe5e8514195c3bee 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: