aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/gdb_optional.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/common/gdb_optional.h b/gdb/common/gdb_optional.h
index fef7a73..ad1119f 100644
--- a/gdb/common/gdb_optional.h
+++ b/gdb/common/gdb_optional.h
@@ -34,8 +34,9 @@ class optional
{
public:
- optional ()
- : m_instantiated (false)
+ constexpr optional ()
+ : m_dummy (),
+ m_instantiated (false)
{
}