aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@cygnus.com>1998-10-23 16:26:19 +0000
committerAndrew Macleod <amacleod@gcc.gnu.org>1998-10-23 16:26:19 +0000
commit943767e30c4c566fd6ae1a421f32e37f25bfba04 (patch)
treefbce2477cf8a6d89c3c97510a2bab007df50870a /gcc
parent91063b51383fe008c4509822a66761f6fc7cf334 (diff)
downloadgcc-943767e30c4c566fd6ae1a421f32e37f25bfba04.zip
gcc-943767e30c4c566fd6ae1a421f32e37f25bfba04.tar.gz
gcc-943767e30c4c566fd6ae1a421f32e37f25bfba04.tar.bz2
exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one.
1998-10-23 Andrew MacLeod <amacleod@cygnus.com> * exception.cc (__cp_pop_exception): Free the original exception value, not the potentially coerced one. From-SVN: r23259
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/exception.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index e5e8def..ae7eb52 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+1998-10-23 Andrew MacLeod <amacleod@cygnus.com>
+
+ * exception.cc (__cp_pop_exception): Free the original exception
+ value, not the potentially coerced one.
+
1998-10-23 Mark Mitchell <mark@markmitchell.com>
* Makefile.in (hash.h): Run gperf when necessary.
diff --git a/gcc/cp/exception.cc b/gcc/cp/exception.cc
index 05b4315..2cc0bc0 100644
--- a/gcc/cp/exception.cc
+++ b/gcc/cp/exception.cc
@@ -233,7 +233,7 @@ __cp_pop_exception (cp_eh_info *p)
p->cleanup (p->value, 2);
if (! __is_pointer (p->type))
- __eh_free (p->value);
+ __eh_free (p->original_value); // value may have been co-erced.
__eh_free (p);
}