Commit 1b4be62a by Jonathan Wakely Committed by Jonathan Wakely

libstdc++/77686 use may_alias for std::function storage

	PR libstdc++/77686
	* include/std/functional (_Any_data): Add may_alias attribute.

From-SVN: r240567
parent 1f563891
2016-09-28 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/77686
* include/std/functional (_Any_data): Add may_alias attribute.
2016-09-27 Jonathan Wakely <jwakely@redhat.com> 2016-09-27 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/status_cxx2017.xml: Update status. * doc/xml/manual/status_cxx2017.xml: Update status.
......
...@@ -1401,7 +1401,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type) ...@@ -1401,7 +1401,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
void (_Undefined_class::*_M_member_pointer)(); void (_Undefined_class::*_M_member_pointer)();
}; };
union _Any_data union [[gnu::may_alias]] _Any_data
{ {
void* _M_access() { return &_M_pod_data[0]; } void* _M_access() { return &_M_pod_data[0]; }
const void* _M_access() const { return &_M_pod_data[0]; } const void* _M_access() const { return &_M_pod_data[0]; }
......
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