On 10/2/19 6:07 AM, Richard Biener wrote:

A middle-end change exposed that the C++ FE handling of pointer-to-member
aggregates in cxx_get_alias_set isn't effective.  The following patch
makes it so by design by marking the structure members as not being
aliased (there can be no pointers like &x.__pfn or &x.__delta) thus
making them behave like fat pointers.

Bootstrapped and tested on x86_64-unknown-linux-gnu.

OK for trunk and affected branches?

Thanks,
Richard.

2019-10-02  Richard Biener  <rguent...@suse.de>

        PR c++/91606
        * decl.c (build_ptrmemfunc_type): Mark pointer-to-member
        fat pointer structure members as DECL_NONADDRESSABLE_P.


ok, thanks

nathan

--
Nathan Sidwell

Reply via email to