Commit 8b642521 by Jonathan Wakely Committed by Jonathan Wakely

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
parent b9fa0575
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
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment