Skip to content

Commit

Permalink
Link to a tiny patch to libstdc++-4.7 to work around the <chrono> issues
Browse files Browse the repository at this point in the history
from the C++ status page.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154890 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
zygoloid committed Apr 17, 2012
1 parent e6975e9 commit 07d2f56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/cxx_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ <h2 id="cxx11">C++11 implementation status</h2>

<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>
Expand Down
13 changes: 13 additions & 0 deletions www/libstdc++4.7-clang11.patch
Original file line number Diff line number Diff line change
@@ -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...>

0 comments on commit 07d2f56

Please sign in to comment.