[PATCH][C++] Fix PR86763, wrong-code with TYPE_TYPELESS_STORAGE

Nathan Sidwell nathan@acm.org
Thu Aug 2 14:19:00 GMT 2018


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  <rguenther@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



More information about the Gcc-patches mailing list