[Bug c++/32609] [4.2/4.3 Regression] ICE in htab_clear_slot at libiberty/hashtab.c:722
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jul 3 13:52:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list