aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-07 16:57:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-07 16:57:35 +0200
commit006bbc5748a8197d7874550cc9186545f1c55ad8 (patch)
treec9efe8c440e806826328686588ab9a102a4ff690
parent356630ced28f3101e8e2d88e3c52f8d3008515c7 (diff)
Fix GCC 8 adaptation to be compatible with previous versions
-rw-r--r--odb/validator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index 75757cd..9dcdabf 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -1512,7 +1512,13 @@ namespace
compiler, get_identifier ("has_lt_operator"), false, false);
if (has_lt_operator_ != error_mark_node)
+ {
+#if BUILDING_GCC_MAJOR >= 8
has_lt_operator_ = OVL_FIRST (has_lt_operator_);
+#else
+ has_lt_operator_ = OVL_CURRENT (has_lt_operator_);
+#endif
+ }
else
{
os << unit.file () << ": error: unable to resolve has_lt_operator "