re PR c++/66857 (Reference not bound to lvalue)
authorPatrick Palka <ppalka@gcc.gnu.org>
Sat, 25 Jul 2015 23:15:44 +0000 (23:15 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sat, 25 Jul 2015 23:15:44 +0000 (23:15 +0000)
commit9783ae5a2f44f714809321c4bb2d5534d50c19a4
tree89d36d2f44fb506176db6a4679bb4c26d0cb8b63
parent39a8bd7b642eb85f66ac9c7755a371c4532e267e
re PR c++/66857 (Reference not bound to lvalue)

Fix PR c++/66857

gcc/cp/ChangeLog:

PR c++/66857
* cvt.c (ocp_convert): Don't call scalar_constant_value when
converting to a class type.

gcc/testsuite/ChangeLog:

PR c++/66857
* g++.dg/init/pr66857.C: New test.

From-SVN: r226228
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/pr66857.C [new file with mode: 0644]