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

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

From-SVN: r240567
This commit is contained in:
Jonathan Wakely 2016-09-28 11:57:46 +01:00 committed by Jonathan Wakely
parent 1f56389164
commit 1b4be62ad3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>
* doc/xml/manual/status_cxx2017.xml: Update status.

View File

@ -1401,7 +1401,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
void (_Undefined_class::*_M_member_pointer)();
};
union _Any_data
union [[gnu::may_alias]] _Any_data
{
void* _M_access() { return &_M_pod_data[0]; }
const void* _M_access() const { return &_M_pod_data[0]; }