[Bug c/86453] [8 Regression] error: type variant differs by TYPE_PACKED in free_lang_data since r255469
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 12 07:16:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86453
--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Thu Jul 12 07:13:36 2018
New Revision: 262575
URL: https://gcc.gnu.org/viewcvs?rev=262575&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/warn/pr86453.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-attribs.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list