[Libreoffice-commits] core.git: configure.ac
Stephan Bergmann
sbergman at redhat.com
Thu Oct 1 00:43:20 PDT 2015
configure.ac | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 7756a9581d531d9353dc72675f62d17c2b314170
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Oct 1 09:38:04 2015 +0200
Don't let old Clang using -std=c++11 mis-detect HAVE_CXX14_CONSTEXPR
...where an assert in a constexpr function merely triggers a -Wc++1y-extensions
(so doesn't stop configure from assuming HAVE_CXX14_CONSTEXPR, but will later
break with --enable-werror when building include/o3tl/typed_flags_set.hxx). So
stuff back the complex constexpr test function that was swapped out with
6cc54913077864ba92d2fdc3addec29ea89770fe "Work around GCC 5.1 ICE."
Change-Id: I04ba1dc08d96f776b331fa9d0cae1703f2796532
diff --git a/configure.ac b/configure.ac
index aec3e4a..946aa79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6347,6 +6347,16 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
}
enum E { e };
auto v = g(E::e);
+
+ struct S {
+ int n_;
+ constexpr bool f() {
+ int n = n_;
+ int i = 0;
+ while (n > 0) { --n; ++i; }
+ return i == 0;
+ }
+ };
]])], [cxx14_constexpr=yes], [cxx14_constexpr=no])
AC_LANG_POP([C++])
CXXFLAGS=$save_CXXFLAGS
More information about the Libreoffice-commits
mailing list