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

Richard Smith richard-llvm at metafoo.co.uk
Mon Apr 16 18:04:22 PDT 2012


Author: rsmith
Date: Mon Apr 16 20:04:22 2012
New Revision: 154890

URL: http://llvm.org/viewvc/llvm-project?rev=154890&view=rev
Log:
Link to a tiny patch to libstdc++-4.7 to work around the <chrono> issues
from the C++ status page.

Added:
    cfe/trunk/www/libstdc++4.7-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=154890&r1=154889&r2=154890&view=diff
==============================================================================
--- cfe/trunk/www/cxx_status.html (original)
+++ cfe/trunk/www/cxx_status.html Mon Apr 16 20:04:22 2012
@@ -40,8 +40,9 @@
 
 <p>You can use Clang in C++11 mode either
 with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.
-libstdc++-4.4 requires <a href="libstdc++4.4-clang0x.patch">a patch</a> to work
-with clang; other versions have not been tested.</p>
+Patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a>
+and <a href="libstdc++4.7-clang11.patch">libstdc++-4.7</a> work with Clang in
+C++11 mode.</p>
 
 <table width="689" border="1" cellspacing="0">
  <tr>

Added: cfe/trunk/www/libstdc++4.7-clang11.patch
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/libstdc%2B%2B4.7-clang11.patch?rev=154890&view=auto
==============================================================================
--- cfe/trunk/www/libstdc++4.7-clang11.patch (added)
+++ cfe/trunk/www/libstdc++4.7-clang11.patch Mon Apr 16 20:04:22 2012
@@ -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<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