This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/81669] trunk/gcc/fibonacci_heap.h:58: possible missing initialisation ?
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 02 Feb 2018 00:14:23 +0000
- Subject: [Bug middle-end/81669] trunk/gcc/fibonacci_heap.h:58: possible missing initialisation ?
- Auto-submitted: auto-generated
- References: <bug-81669-4@http.gcc.gnu.org/bugzilla/>
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.