From 07d2f56717ba90a3d52d9f0de560435b495d99b6 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 17 Apr 2012 01:04:22 +0000 Subject: [PATCH] Link to a tiny patch to libstdc++-4.7 to work around the issues from the C++ status page. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154890 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/cxx_status.html | 5 +++-- www/libstdc++4.7-clang11.patch | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 www/libstdc++4.7-clang11.patch diff --git a/www/cxx_status.html b/www/cxx_status.html index 7c319ee42c46..a2ef96770634 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -40,8 +40,9 @@

C++11 implementation status

You can use Clang in C++11 mode either with libc++ or with gcc's libstdc++. -libstdc++-4.4 requires a patch to work -with clang; other versions have not been tested.

+Patches are needed to make libstdc++-4.4 +and libstdc++-4.7 work with Clang in +C++11 mode.

diff --git a/www/libstdc++4.7-clang11.patch b/www/libstdc++4.7-clang11.patch new file mode 100644 index 000000000000..3f0300725df3 --- /dev/null +++ b/www/libstdc++4.7-clang11.patch @@ -0,0 +1,13 @@ +Index: include/std/type_traits +=================================================================== +--- include/std/type_traits (revision 185724) ++++ include/std/type_traits (working copy) +@@ -1746,7 +1746,7 @@ + + template + struct common_type<_Tp, _Up> +- { typedef decltype(true ? declval<_Tp>() : declval<_Up>()) type; }; ++ { typedef typename decay() : declval<_Up>())>::type type; }; + + template + struct common_type<_Tp, _Up, _Vp...>