[C++ PATCH] Propagate TYPE_PACKED to template variants (PR c++/88181)

Jason Merrill jason@redhat.com
Tue Nov 27 21:02:00 GMT 2018


On 11/26/18 3:54 PM, Jakub Jelinek wrote:
> Hi!
> 
> On the following patch -fpack-struct forces TYPE_PACKED on all the classes
> and their variants, but we then create a variant of a class instantiation
> (const) which doesn't have the TYPE_PACKED set and later finalize the
> template main variant, but don't propagate that to the already created
> variants.
> 
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux,
> ok for trunk?
> 
> 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/88181
> 	* class.c (fixup_attribute_variants): Also propagate TYPE_PACKED
> 	to variants.

OK.

Jason



More information about the Gcc-patches mailing list