2018-07-12 Richard Biener <rguenther@suse.de>
commite56b0fa3727ac26bb47b5d441c75dc5b29772de6
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 07:13:36 +0000 (12 07:13 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jul 2018 07:13:36 +0000 (12 07:13 +0000)
tree6929b0f9adbbe1835a3db9c1c962b36c3c168679
parent77c201fd5f88d6b3a07337e92de54ef283681226
2018-07-12  Richard Biener  <rguenther@suse.de>

PR c/86453
* c-attribs.c (handle_packed_attribute): Do not build a variant
type with TYPE_PACKED, instead ignore the attribute if we may
not apply to the original type.

* g++.dg/warn/pr86453.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262575 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr86453.C [new file with mode: 0644]