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
This commit is contained in:
Jonathan Wakely 2014-12-21 15:16:08 +00:00 committed by Jonathan Wakely
parent b9fa057537
commit 8b6425215f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-12-21 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/64367
* include/std/stdexcept: Don't use non-static member in sizeof.
2014-12-20 François Dumont <fdumont@gcc.gnu.org>
* include/debug/vector (std::__debug::vector<>::clear()): Do not reset

View file

@ -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();