Re: [PATCH][C family] Fix PR86453

2018-07-11 Thread Marek Polacek
On Wed, Jul 11, 2018 at 11:55:32AM +0200, Richard Biener wrote: > > This fixes handle_packed_attribute creating a type variant which differs > in TYPE_PACKED. This cannot be generally allowed since TYPE_PACKED > affects layout and layout is shared between variants. > > For the testcase in questi

[PATCH][C family] Fix PR86453

2018-07-11 Thread Richard Biener
This fixes handle_packed_attribute creating a type variant which differs in TYPE_PACKED. This cannot be generally allowed since TYPE_PACKED affects layout and layout is shared between variants. For the testcase in question the attribute itself is later ignored but TYPE_PACKED is still applied w