https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69851

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 19 19:11:58 2016
New Revision: 233566

URL: https://gcc.gnu.org/viewcvs?rev=233566&root=gcc&view=rev
Log:
        PR c++/69851
        * expr.c (store_field): Don't use bit-field path if exp is
        COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
        different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
        and the assignment can be performed by bitwise copy.  Formatting
        fix.

        * g++.dg/torture/pr69851.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr69851.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to