[PATCH, applied] Bug 26021 - Upgrade the C++ standard to C++14
Dodji Seketeli
dodji@redhat.com
Wed Jul 2 15:59:54 GMT 2025
Hello,
As stated in bug https://sourceware.org/bugzilla/show_bug.cgi?id=26021
we can safely set the minimum required C++ standard of the code base
to C++14 because that is what GCC 8.5 of EL8 supports by default,
since GCC 6. This patch does just that.
* configure.ac: Upgrade the code base to c++14. This is the
default in GCC 8.5, used in EL8, the oldest platform that we
currently support.
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Applied to mainline.
---
configure.ac | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index b5a73add..613c0cba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -288,9 +288,11 @@ AC_LANG([C++])
AC_LANG_COMPILER_REQUIRE
dnl
-dnl We use C++11
+dnl We use C++14. It has been the default in G++ since GCC 6. In el8
+dnl (that we still support), we do have GCC 8.x with c++14 as the
+dnl default, still.
dnl
-CXX_STANDARD=c++11
+CXX_STANDARD=c++14
dnl
dnl check if the c++ compiler has support __attribute__((visibility("hidden")))
--
2.47.1
--
Dodji
More information about the Libabigail
mailing list