Index: docs/index.rst =================================================================== --- docs/index.rst +++ docs/index.rst @@ -101,9 +101,9 @@ The following minimum compiler versions are strongly recommended. * Clang 3.5 and above -* GCC 4.7 and above. +* GCC 5.0 and above. -Anything older *may* work. +The C++03 dialect is only supported for Clang compilers. C++ Dialect Support --------------------- Index: include/__config =================================================================== --- include/__config +++ include/__config @@ -187,6 +187,10 @@ #define _LIBCPP_CLANG_VER 0 #endif +#if defined(_LIBCPP_COMPILER_GCC) && __cplusplus < 201103L +#error "libc++ does not support using GCC with C++03. Please enable C++11" +#endif + // FIXME: ABI detection should be done via compiler builtin macros. This // is just a placeholder until Clang implements such macros. For now assume // that Windows compilers pretending to be MSVC++ target the Microsoft ABI,