re PR c++/32609 (ICE in htab_clear_slot at libiberty/hashtab.c:722)

2007-07-03  Richard Guenther  <rguenther@suse.de>

	PR c++/32609
	* class.c (fixed_type_or_null): Re-lookup the hashtable slot
	after recursing.

From-SVN: r126262
This commit is contained in:
Richard Guenther 2007-07-03 15:29:19 +00:00 committed by Richard Biener
parent 6ba6728370
commit e656a4656e
2 changed files with 7 additions and 1 deletions

View 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

View 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;
}