PR c++/79533 - C++17 ICE with temporary cast to reference
authorJason Merrill <jason@redhat.com>
Fri, 17 Feb 2017 16:50:16 +0000 (11:50 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 17 Feb 2017 16:50:16 +0000 (11:50 -0500)
commit1ee2604721c1e6b926d6c28aa4b4d42c6e85332f
tree6d657a16b46af50a9d543888b615aa1a6b0f8cf0
parent8b4aea7364cbb2e82e0e46810c6a99bf001ff25b
PR c++/79533 - C++17 ICE with temporary cast to reference

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

From-SVN: r245538
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/init/elide6.C [new file with mode: 0644]