re PR c++/79085 (ICE with placement new to unaligned location)
authorJakub Jelinek <jakub@redhat.com>
Thu, 15 Mar 2018 21:09:24 +0000 (22:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 15 Mar 2018 21:09:24 +0000 (22:09 +0100)
commitffc8b52f9a5e73ad375be213ddcb1a8371dc328b
tree03b47a89783a193a850fb2dbf9da6a016f76794d
parent724ad4a31b5655ebe8b8ca5ddf7db388231ee08b
re PR c++/79085 (ICE with placement new to unaligned location)

PR c++/79085
* calls.c (expand_call): For TREE_ADDRESSABLE rettype ignore alignment
check and use address of target always.

* g++.dg/opt/pr79085.C: New test.

From-SVN: r258574
gcc/ChangeLog
gcc/calls.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr79085.C [new file with mode: 0644]