File sword-gcc6-ftemplate-depth.patch of Package sword
Index: b/configure.ac
===================================================================
--- a/configure.ac
+++ b/configure.ac
@@ -197,7 +197,7 @@ AM_CFLAGS="$AM_CFLAGS -D_ICUSWORD_"
fi
-AM_CXXFLAGS="$AM_CXXFLAGS -ftemplate-depth-25"
+AM_CXXFLAGS="$AM_CXXFLAGS -ftemplate-depth-100"
if test x$enable_warnings = xyes; then
AM_CFLAGS="$AM_CFLAGS -Werror"
@@ -250,7 +250,7 @@ else
fi
if test x$with_cxx11regex = xyes; then
- AM_CXXFLAGS="$AM_CXXFLAGS -DUSECXX11REGEX -std=c++11 -ftemplate-depth=100"
+ AM_CXXFLAGS="$AM_CXXFLAGS -DUSECXX11REGEX -std=c++11"
fi
# ---------------------------------------------------------------------