[libcxx-commits] [PATCH] D63154: Make GCC in C++03 Unsupported

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 12 17:34:22 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL363219: Make GCC in C++03 Unsupported (authored by EricWF, committed by ).
Herald added subscribers: llvm-commits, christof.
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D63154?vs=204119&id=204397#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63154/new/

https://reviews.llvm.org/D63154

Files:
  libcxx/trunk/docs/index.rst
  libcxx/trunk/include/__config


Index: libcxx/trunk/docs/index.rst
===================================================================
--- libcxx/trunk/docs/index.rst
+++ libcxx/trunk/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: libcxx/trunk/include/__config
===================================================================
--- libcxx/trunk/include/__config
+++ libcxx/trunk/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,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63154.204397.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190613/63b1fbe4/attachment.bin>


More information about the libcxx-commits mailing list