This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32609] [4.2/4.3 Regression] ICE in htab_clear_slot at libiberty/hashtab.c:722



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-07-03 13:52 -------
Or we just re-alloc the hashtab somewhere inbetween.  Anyway, the following
fixes
the problem:

Index: cp/class.c
===================================================================
--- cp/class.c  (revision 126252)
+++ cp/class.c  (working copy)
@@ -5376,7 +5376,7 @@ fixed_type_or_null (tree instance, int* 
              *slot = instance;
              type = fixed_type_or_null (DECL_INITIAL (instance),
                                         nonnull, cdtorp);
-             htab_clear_slot (ht, slot);
+             htab_remove_elt (ht, instance);

              return type;
            }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32609


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]