summaryrefslogtreecommitdiff
path: root/odb/odb/processor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb/processor.cxx')
-rw-r--r--odb/odb/processor.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/odb/odb/processor.cxx b/odb/odb/processor.cxx
index d48baa7..fb129fa 100644
--- a/odb/odb/processor.cxx
+++ b/odb/odb/processor.cxx
@@ -458,8 +458,14 @@ namespace
// functions. Note that TREE_PUBLIC() returns something
// other than what we need.
//
- if (!DECL_NONSTATIC_MEMBER_FUNCTION_P (f) ||
- TREE_PRIVATE (f) || TREE_PROTECTED (f))
+ if (
+#if BUILDING_GCC_MAJOR >= 14
+ !DECL_OBJECT_MEMBER_FUNCTION_P (f)
+#else
+ !DECL_NONSTATIC_MEMBER_FUNCTION_P (f)
+#endif
+ || TREE_PRIVATE (f)
+ || TREE_PROTECTED (f))
continue;
found_type r (k == "get"
@@ -568,7 +574,13 @@ namespace
#endif
// We are only interested in non-static member functions.
//
- if (!DECL_NONSTATIC_MEMBER_FUNCTION_P (f))
+ if (
+#if BUILDING_GCC_MAJOR >= 14
+ !DECL_OBJECT_MEMBER_FUNCTION_P (f)
+#else
+ !DECL_NONSTATIC_MEMBER_FUNCTION_P (f)
+#endif
+ )
continue;
if ((k == "get"