This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32609] [4.2/4.3 Regression] ICE in htab_clear_slot at libiberty/hashtab.c:722
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2007 13:52:15 -0000
- Subject: [Bug c++/32609] [4.2/4.3 Regression] ICE in htab_clear_slot at libiberty/hashtab.c:722
- References: <bug-32609-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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