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  <rguent...@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

Reply via email to