Patchwork [review] gdb: fix build error in unittests/vec-utils-selftests.c

login
register
mail settings
Submitter Simon Marchi (Code Review)
Date Nov. 14, 2019, 9 a.m.
Message ID <20191114090014.20AD320AF6@gnutoolchain-gerrit.osci.io>
Download mbox | patch
Permalink /patch/35870/
State New
Headers show

Comments

Simon Marchi (Code Review) - Nov. 14, 2019, 9 a.m.
Tom de Vries has posted comments on this change.

Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/626
......................................................................


Patch Set 1: Code-Review+1

I also looked at this and came up with the similar:
...
...

I've tested your patch, and can confirm it fixes my build.  LGTM.

Patch

diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c
index 823bbb61c25..61b9851dfd9 100644
--- a/gdb/unittests/vec-utils-selftests.c
+++ b/gdb/unittests/vec-utils-selftests.c
@@ -45,6 +45,9 @@  unordered_remove_tests ()
       this->var = other.var;
       return *this;
     }
+
+    obj () {}
+    obj (const obj &other) {}
   };
 
   std::vector<obj> v;