gdb::string_view uses gdb_assert, so it should include that header.
And gdb_assert uses internal_error, so it should include errors.h.
gdb/ChangeLog:
2019-10-02 Christian Biesinger <cbiesinger@google.com>
* gdbsupport/gdb_assert.h: Include errors.h.
* gdbsupport/gdb_string_view.h: Include gdb_assert.h.
+2019-10-02 Christian Biesinger <cbiesinger@google.com>
+
+ * gdbsupport/gdb_assert.h: Include errors.h.
+ * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
+
2019-10-02 Tom Tromey <tromey@adacore.com>
* NEWS: Add $_ada_exception entry.
#ifndef COMMON_GDB_ASSERT_H
#define COMMON_GDB_ASSERT_H
+#include "errors.h"
+
/* A static assertion. This will cause a compile-time error if EXPR,
which must be a compile-time constant, is false. */
#include <string>
#include <limits>
+#include "gdb_assert.h"
namespace gdb {