re PR c++/26714 (violation of [class.temporary]/5)
authorJason Merrill <jason@redhat.com>
Sat, 5 Nov 2011 03:28:14 +0000 (23:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 5 Nov 2011 03:28:14 +0000 (23:28 -0400)
commite2df21bfc6c81b4bc410a42002c8427454ffa628
tree7b439ecb9236581bd4b64ccf943c6d9a7ce82aa0
parent8dc1dc7975a3d8dd3ffdfd6fcc992419cc358af7
re PR c++/26714 (violation of [class.temporary]/5)

PR c++/26714
* init.c (perform_member_init): Strip TARGET_EXPR around NSDMI.
Do temporary lifetime extension.

From-SVN: r181002
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist-lifetime2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/lifetime2.C [new file with mode: 0644]