[Bug middle-end/81669] trunk/gcc/fibonacci_heap.h:58: possible missing initialisation ?
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 2 00:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81669
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-02
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. The default constructor appears to be used in the definition of
fibonacci_heap::replace_key_data (fibonacci_node<K,V> *node, K key, V *data):
...
/* If we wanted to, we do a real increase by redeleting and
inserting. */
if (node->compare_data (key) > 0)
{
delete_node (node, false);
node = new (node) fibonacci_node_t ();
insert (node, key, data);
return odata;
Having a test case showing what breaks because of it would provide motivation
to fix it.
More information about the Gcc-bugs
mailing list