aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog6
-rw-r--r--gcc/cp/class.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 27f6dc5..059631f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-03 Richard Guenther <rguenther@suse.de>
+
+ PR c++/32609
+ * class.c (fixed_type_or_null): Re-lookup the hashtable slot
+ after recursing.
+
2007-07-02 Simon Baldwin <simonb@google.com>
* parser.c (cp_parser_elaborated_type_specifier): Added a warning
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 67cf63d..f2ccd5b 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -5377,7 +5377,7 @@ fixed_type_or_null (tree instance, int *nonnull, int *cdtorp)
slot = htab_find_slot (ht, instance, INSERT);
*slot = instance;
type = RECUR (DECL_INITIAL (instance));
- htab_clear_slot (ht, slot);
+ htab_remove_elt (ht, instance);
return type;
}