Commit 388f3a64 by Jakub Jelinek Committed by Jakub Jelinek

pr57878.C (__sso_string_base::_M_get_allocator): Return a value.

	* g++.dg/pr57878.C (__sso_string_base::_M_get_allocator): Return
	a value.

From-SVN: r254537
parent 383ac8dc
2017-11-08 Jakub Jelinek <jakub@redhat.com>
* g++.dg/pr57878.C (__sso_string_base::_M_get_allocator): Return
a value.
PR tree-optimization/78821
* gcc.dg/store_merging_2.c: Expect 3 store mergings instead of 2.
* gcc.dg/store_merging_13.c (f7, f8, f9, f10, f11, f12, f13): New
......
......@@ -95,6 +95,8 @@ namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) {
}
__sso_string_base(const __sso_string_base& __rcs);
const _CharT_alloc_type& _M_get_allocator() const {
static _CharT_alloc_type c;
return c;
}
};
template<typename _CharT, typename _Traits, typename _Alloc>
......
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