PR c++/79533 - C++17 ICE with temporary cast to reference
commita4d6d852293c2741c431cf1161dd43db79902cbd
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Feb 2017 16:50:16 +0000 (17 16:50 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Feb 2017 16:50:16 +0000 (17 16:50 +0000)
tree6d657a16b46af50a9d543888b615aa1a6b0f8cf0
parent127e79a7969288b46ac523aa3815d1b9995dab58
PR c++/79533 - C++17 ICE with temporary cast to reference

* call.c (build_over_call): Conversion to a reference prevents copy
elision.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245538 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/init/elide6.C [new file with mode: 0644]