diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 2c18e49c5..d3ed399ed 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -449,7 +449,7 @@ m4_define([_AX_CXX_COMPILE_STDCXX_testbody_new_in_14], [[ #error "This is not a C++ compiler" -#elif __cplusplus < 201402L +#elif __cplusplus < 201300L #error "This is not a C++14 compiler" @@ -484,6 +484,7 @@ namespace cxx14 } +#ifdef DISALLOW_GCC48 namespace test_generalized_constexpr { @@ -503,6 +504,7 @@ namespace cxx14 static_assert(strlen_c("another\0test") == 7UL, ""); } +#endif namespace test_lambda_init_capture {