diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2014-12-21 15:16:08 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2014-12-21 15:16:08 +0000 |
commit | 8b6425215f80becd97d6312c2a9e414a1562a78c (patch) | |
tree | afe8477dc8e0f2eff4918ffaf7d69ad223a1becf /libstdc++-v3/include/std/stdexcept | |
parent | b9fa057537445e7ecfb2bbbfcf7ecacdc4e3ad05 (diff) | |
download | gcc-8b6425215f80becd97d6312c2a9e414a1562a78c.zip gcc-8b6425215f80becd97d6312c2a9e414a1562a78c.tar.gz gcc-8b6425215f80becd97d6312c2a9e414a1562a78c.tar.bz2 |
re PR libstdc++/64367 (g++-v5/stdexcept:52:28: error: invalid use of non-static data member '_M_p')
PR libstdc++/64367
* include/std/stdexcept: Don't use non-static member in sizeof.
From-SVN: r218997
Diffstat (limited to 'libstdc++-v3/include/std/stdexcept')
-rw-r--r-- | libstdc++-v3/include/std/stdexcept | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |