re PR c++/54521 (g++ fails to call explicit constructors in the second step of copy...
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 10 Jul 2015 22:56:35 +0000 (22:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 10 Jul 2015 22:56:35 +0000 (22:56 +0000)
commit0a73242e1ab3ac00d8fe9a98f10732473a96dc04
tree538ca2171bc2df49606b4e053788104ca7fc3cb4
parent2ec7e902e7dfa2901bdba3765e11c3bcdec543f2
re PR c++/54521 (g++ fails to call explicit constructors in the second step of copy initialization)

/cp
2015-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54521
* call.c (convert_like_real): Do not set LOOKUP_ONLYCONVERTING for
the second step of copy-initialization.

/testsuite
2015-07-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54521
* g++.dg/init/explicit3.C: New.

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