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 (__sso_string): Don't use non-static member
	in sizeof.

From-SVN: r221118
This commit is contained in:
Jonathan Wakely 2015-03-02 16:50:24 +00:00 committed by Jonathan Wakely
parent d366a1a795
commit e59a2e945e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-03-02 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64367
* include/std/stdexcept (__sso_string): Don't use non-static member
in sizeof.
2015-02-28 Matthias Klose <doko@ubuntu.com>
PR libstdc++/65246

View File

@ -80,7 +80,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
union {
__str _M_s;
char _M_bytes[sizeof(_M_s)];
char _M_bytes[sizeof(__str)];
};
__sso_string() _GLIBCXX_USE_NOEXCEPT;