OSDN Git Service

2007-07-03 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2007 15:29:19 +0000 (15:29 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jul 2007 15:29:19 +0000 (15:29 +0000)
PR c++/32609
* class.c (fixed_type_or_null): Re-lookup the hashtable slot
after recursing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126262 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c

index 27f6dc5..059631f 100644 (file)
@@ -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
index 67cf63d..f2ccd5b 100644 (file)
@@ -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;
            }