[Bug middle-end/92761] hash_table::expand invokes assignment on invalid objects

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 3 01:31:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92761

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Again, leave bugs alone that you don't understand.  Quoting from the comment in
hash-table.h:

   INTRODUCTION TO TYPES

   Users of the hash table generally need to be aware of three types.

      ...

      2. The type used to describe how to handle the value type within
      the hash table.  This descriptor type provides the hash table with
      several things.

         - A typedef named 'value_type' to the value type (from above).
         Provided a suitable Descriptor class it may be a user-defined,
         non-POD type.

There are at least two existing uses of hash-based containers whose elements
are non-trivial types.  For example  in gimple-ssa-isolate-paths.c:
  typedef hash_map <gimple *, args_loc_t> locmap_t;

or in attribs.c:
  typedef hash_set<excl_pair, false, excl_hash_traits> exclusion_set;

Regardless, Bugzilla is exactly where change requests are tracked, whether they
are to fix bugs or make enhancements.


More information about the Gcc-bugs mailing list