diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-04 22:23:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-10-04 22:23:07 +0000 |
commit | 84b163cf66215252e5f2567382168eb8881b2538 (patch) | |
tree | bd174696da19df0c72d6193d2d024415be3fcd97 /clang/www/libstdc++4.6-clang11.patch | |
parent | 2f355a7fca2011fdc2cefe595338be26f741b117 (diff) | |
download | bcm5719-llvm-84b163cf66215252e5f2567382168eb8881b2538.tar.gz bcm5719-llvm-84b163cf66215252e5f2567382168eb8881b2538.zip |
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.
llvm-svn: 165265
Diffstat (limited to 'clang/www/libstdc++4.6-clang11.patch')
-rw-r--r-- | clang/www/libstdc++4.6-clang11.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/www/libstdc++4.6-clang11.patch b/clang/www/libstdc++4.6-clang11.patch new file mode 100644 index 00000000000..cc2cb1404da --- /dev/null +++ b/clang/www/libstdc++4.6-clang11.patch @@ -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...> |