This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] libstdc++/64367 fix __sso_string to compile with clang
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 21 Dec 2014 15:16:49 +0000
- Subject: [patch] libstdc++/64367 fix __sso_string to compile with clang
- Authentication-results: sourceware.org; auth=none
Tested powerpc64-linux, committed to trunk.
commit 922a84d1db99455f6d8900453ea5615f93b124f1
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Sun Dec 21 13:54:39 2014 +0000
PR libstdc++/64367
* include/std/stdexcept: Don't use non-static member in sizeof.
diff --git a/libstdc++-v3/include/std/stdexcept b/libstdc++-v3/include/std/stdexcept
index c927f05..e049a6e 100644
--- a/libstdc++-v3/include/std/stdexcept
+++ b/libstdc++-v3/include/std/stdexcept
@@ -49,7 +49,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
union {
const char* _M_p;
- char _M_bytes[sizeof(_M_p)];
+ char _M_bytes[sizeof(const char*)];
};
__cow_string();