On 08/02/2018 01:30 AM, Richard Biener wrote:

This fixes the PR by making sure CLASSTYPE_AS_BASE types inherit
TYPE_TYPELESS_STORAGE from the main type so that types that inherit
a type with TYPE_TYPELESS_STORAGE also get TYPE_TYPELESS_STORAGE
propagated.

Bootstrap & regtest running on x86_64-unknown-linux-gnu, OK?

Thanks,
Richard.

2018-08-02  Richard Biener  <rguent...@suse.de>

        PR c++/86763
        * class.c (layout_class_type): Copy TYPE_TYPELESS_STORAGE
        to the CLASSTYPE_AS_BASE.

        * g++.dg/torture/pr86763.C: New testcase.

Ok, thanks.


--
Nathan Sidwell

Reply via email to