]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/69851 (ICE: in assign_temp, at function.c:961)
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Feb 2016 19:11:58 +0000 (20:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Feb 2016 19:11:58 +0000 (20:11 +0100)
commit4b6c824a58ae964920b37e5014793a55b32bc8ce
treead095f6a8fb1989c26f70257401d09f011e05436
parent15fca21a3e563ae90a5cc4ae00c36cc0c8e3f6f9
re PR c++/69851 (ICE:  in assign_temp, at function.c:961)

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.

From-SVN: r233566
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr69851.C [new file with mode: 0644]