[cfe-commits] r165265 - in /cfe/trunk/www: cxx_status.html libstdc++4.6-clang11.patch

Richard Smith richard-llvm at metafoo.co.uk
Thu Oct 4 15:23:07 PDT 2012


Author: rsmith
Date: Thu Oct  4 17:23:07 2012
New Revision: 165265

URL: http://llvm.org/viewvc/llvm-project?rev=165265&view=rev
Log:
libstdc++-4.6 needs the same common_type fix as libstdc++-4.7. Other than that,
Clang can now cope with its eccentricities in C++11 mode.

Added:
    cfe/trunk/www/libstdc++4.6-clang11.patch
Modified:
    cfe/trunk/www/cxx_status.html

Modified: cfe/trunk/www/cxx_status.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/cxx_status.html?rev=165265&r1=165264&r2=165265&view=diff
==============================================================================
--- cfe/trunk/www/cxx_status.html (original)
+++ cfe/trunk/www/cxx_status.html Thu Oct  4 17:23:07 2012
@@ -40,7 +40,8 @@
 
 <p>You can use Clang in C++11 mode either
 with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.
-Patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a>
+Patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a>,
+<a href="libstdc++4.6-clang11.patch">libstdc++-4.6</a>,
 and <a href="libstdc++4.7-clang11.patch">libstdc++-4.7</a> work with Clang in
 C++11 mode.</p>
 

Added: cfe/trunk/www/libstdc++4.6-clang11.patch
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/libstdc%2B%2B4.6-clang11.patch?rev=165265&view=auto
==============================================================================
--- cfe/trunk/www/libstdc++4.6-clang11.patch (added)
+++ cfe/trunk/www/libstdc++4.6-clang11.patch Thu Oct  4 17:23:07 2012
@@ -0,0 +1,11 @@
+--- type_traits.orig	2012-10-04 15:20:43.452992946 -0700
++++ type_traits	2012-10-04 15:21:32.423657167 -0700
+@@ -1110,7 +1110,7 @@
+ 
+   template<typename _Tp, typename _Up>
+     struct common_type<_Tp, _Up>
+-    { typedef decltype(true ? declval<_Tp>() : declval<_Up>()) type; };
++    { typedef typename decay<decltype(true ? declval<_Tp>() : declval<_Up>())>::type type; };
+ 
+   template<typename _Tp, typename _Up, typename... _Vp>
+     struct common_type<_Tp, _Up, _Vp...>





More information about the cfe-commits mailing list