aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/unittests/vec-utils-selftests.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8be8efbb417..719574f3096 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-14 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * unittests/vec-utils-selftests.c (unordered_remove_tests::obj):
+ Provide explicit default and copy constructor.
+
2019-11-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* python/py-finishbreakpoint.c (gdbpy_breakpoint_created):
diff --git a/gdb/unittests/vec-utils-selftests.c b/gdb/unittests/vec-utils-selftests.c
index 823bbb61c25..51490916b08 100644
--- a/gdb/unittests/vec-utils-selftests.c
+++ b/gdb/unittests/vec-utils-selftests.c
@@ -38,6 +38,15 @@ unordered_remove_tests ()
{
std::vector<void *> var;
+ obj() = default;
+
+ /* gcc complains if we provide an assignment operator but no copy
+ constructor, so provide one even if don't really care for this test. */
+ obj(const obj &other)
+ {
+ this->var = other.var;
+ }
+
obj &operator= (const obj &other)
{
if (this == &other)