re PR c++/64527 (Constructor for empty struct not called in some situations)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 17 Apr 2015 12:14:24 +0000 (12:14 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 17 Apr 2015 12:14:24 +0000 (12:14 +0000)
commit2234a9cb75c9f2ba6d6b944a93c673e5b3fc004a
treee673e0b8a136f5b01ca1c70882bc13acd7a0cfd5
parent3f6a2f9e08e49561d682d334d383ec1be9d4dc92
re PR c++/64527 (Constructor for empty struct not called in some situations)

Fix PR c++/64527

gcc/
PR c++/64527
* gimplify.c (gimplify_init_constructor): Always emit a
side-effecting constructor.

gcc/testsuite/
PR c++/64527
* g++.dg/init/pr64527.C: New test.

From-SVN: r222176
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/pr64527.C [new file with mode: 0644]