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

Message ID 20191114090014.20AD320AF6@gnutoolchain-gerrit.osci.io
State New, archived
Headers

Commit Message

Simon Marchi (Code Review) Nov. 14, 2019, 9 a.m. UTC
  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;